spec/dummy/log/test.log in transactionable-0.2.0 vs spec/dummy/log/test.log in transactionable-0.3.0
- old
+ new
@@ -2882,5 +2882,467 @@
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (6.3ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 10 Mar 2014 13:48:14 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:14 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.4ms)[0m [1mINSERT INTO "transactionable_credit_cards" ("created_at", "credit_cardable_id", "credit_cardable_type", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:14 UTC +00:00], ["credit_cardable_id", 1], ["credit_cardable_type", "User"], ["updated_at", Mon, 10 Mar 2014 13:48:14 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:14 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"], ["type", "Transactionable::RemoteCreditCard"], ["updated_at", Mon, 10 Mar 2014 13:48:14 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP2hgu613pxQrR6LufBofGhW/cards/CC2jcda3YthlpkHu2QplhpEu"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mTransactionable::CreditCard Load (0.2ms)[0m SELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mTransactionable::RemoteCreditCard Load (0.3ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCreditCard') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mUPDATE "transactionable_credit_cards" SET "description" = ?, "last_four" = ?, "brand" = ?, "expiration_month" = ?, "expiration_year" = ?, "expiration_date" = ?, "updated_at" = ? WHERE "transactionable_credit_cards"."id" = 1[0m [["description", "Visa (1111)"], ["last_four", 1111], ["brand", "Visa"], ["expiration_month", 12], ["expiration_year", 2016], ["expiration_date", Thu, 01 Dec 2016], ["updated_at", Mon, 10 Mar 2014 13:48:14 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mTransactionable::RemoteCustomer Load (0.3ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "User"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "synced_at", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:14 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "User"], ["synced_at", 2014-03-10 09:48:14 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Mon, 10 Mar 2014 13:48:14 UTC +00:00], ["uri", "/v1/customers/CU2kPDAMO1FMAqryJzPaSrvs"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mTransactionable::RemoteCustomer Load (0.2ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "User"]]
+ [1m[36mTransactionable::CreditCard Load (0.3ms)[0m [1mSELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."credit_cardable_id" = ? AND "transactionable_credit_cards"."credit_cardable_type" = ? ORDER BY "transactionable_credit_cards"."id" ASC LIMIT 1[0m [["credit_cardable_id", 1], ["credit_cardable_type", "User"]]
+ [1m[35mTransactionable::RemoteCreditCard Load (0.2ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCreditCard') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "transactionable_transactions" ("amount", "created_at", "status", "type", "updated_at") VALUES (?, ?, ?, ?, ?) [["amount", #<BigDecimal:1013f6c20,'0.1337E2',18(45)>], ["created_at", Mon, 10 Mar 2014 13:48:14 UTC +00:00], ["status", "succeeded"], ["type", "Transactionable::Debit"], ["updated_at", Mon, 10 Mar 2014 13:48:14 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:14 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::Transaction"], ["type", "Transactionable::RemoteTransaction"], ["updated_at", Mon, 10 Mar 2014 13:48:14 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP2hgu613pxQrR6LufBofGhW/debits/WD2qO5ACyGfr2zsdw8XUSv6f"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m UPDATE "transactionable_transactions" SET "transactionable_id" = ?, "transactionable_type" = ?, "updated_at" = ? WHERE "transactionable_transactions"."type" IN ('Transactionable::Debit') AND "transactionable_transactions"."id" = 1 [["transactionable_id", 1], ["transactionable_type", "Transactionable::CreditCard"], ["updated_at", Mon, 10 Mar 2014 13:48:14 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mTransactionable::Transaction Load (0.2ms)[0m SELECT "transactionable_transactions".* FROM "transactionable_transactions" WHERE "transactionable_transactions"."transactionable_id" = ? AND "transactionable_transactions"."transactionable_type" = ? ORDER BY "transactionable_transactions"."id" ASC LIMIT 1 [["transactionable_id", 1], ["transactionable_type", "Transactionable::CreditCard"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "transactionable_transaction_logs" ("created_at", "transaction_id", "transaction_loggable_id", "transaction_loggable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:14 UTC +00:00], ["transaction_id", 1], ["transaction_loggable_id", 1], ["transaction_loggable_type", "User"], ["updated_at", Mon, 10 Mar 2014 13:48:14 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mTransactionable::RemoteTransaction Load (0.4ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteTransaction') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "Transactionable::Transaction"]]
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "transactionable_credit_cards" ("created_at", "credit_cardable_id", "credit_cardable_type", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00], ["credit_cardable_id", 1], ["credit_cardable_type", "User"], ["updated_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"], ["type", "Transactionable::RemoteCreditCard"], ["updated_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP2hgu613pxQrR6LufBofGhW/cards/CC2jcda3YthlpkHu2QplhpEu"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mTransactionable::CreditCard Load (0.1ms)[0m SELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mTransactionable::RemoteCreditCard Load (0.2ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCreditCard') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mUPDATE "transactionable_credit_cards" SET "description" = ?, "last_four" = ?, "brand" = ?, "expiration_month" = ?, "expiration_year" = ?, "expiration_date" = ?, "updated_at" = ? WHERE "transactionable_credit_cards"."id" = 1[0m [["description", "Visa (1111)"], ["last_four", 1111], ["brand", "Visa"], ["expiration_month", 12], ["expiration_year", 2016], ["expiration_date", Thu, 01 Dec 2016], ["updated_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mTransactionable::RemoteCustomer Load (0.1ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "User"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "synced_at", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "User"], ["synced_at", 2014-03-10 09:48:15 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00], ["uri", "/v1/customers/CU2kPDAMO1FMAqryJzPaSrvs"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mTransactionable::RemoteCustomer Load (0.2ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "User"]]
+ [1m[36mTransactionable::CreditCard Load (0.2ms)[0m [1mSELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."credit_cardable_id" = ? AND "transactionable_credit_cards"."credit_cardable_type" = ? ORDER BY "transactionable_credit_cards"."id" ASC LIMIT 1[0m [["credit_cardable_id", 1], ["credit_cardable_type", "User"]]
+ [1m[35mTransactionable::RemoteCreditCard Load (0.2ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCreditCard') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "transactionable_transactions" ("amount", "created_at", "status", "type", "updated_at") VALUES (?, ?, ?, ?, ?) [["amount", #<BigDecimal:1015fff30,'0.1337E2',18(45)>], ["created_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00], ["status", "succeeded"], ["type", "Transactionable::Debit"], ["updated_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::Transaction"], ["type", "Transactionable::RemoteTransaction"], ["updated_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP2hgu613pxQrR6LufBofGhW/debits/WD2qO5ACyGfr2zsdw8XUSv6f"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m UPDATE "transactionable_transactions" SET "transactionable_id" = ?, "transactionable_type" = ?, "updated_at" = ? WHERE "transactionable_transactions"."type" IN ('Transactionable::Debit') AND "transactionable_transactions"."id" = 1 [["transactionable_id", 1], ["transactionable_type", "Transactionable::CreditCard"], ["updated_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mTransactionable::Transaction Load (0.1ms)[0m SELECT "transactionable_transactions".* FROM "transactionable_transactions" WHERE "transactionable_transactions"."transactionable_id" = ? AND "transactionable_transactions"."transactionable_type" = ? ORDER BY "transactionable_transactions"."id" ASC LIMIT 1 [["transactionable_id", 1], ["transactionable_type", "Transactionable::CreditCard"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "transactionable_transaction_logs" ("created_at", "transaction_id", "transaction_loggable_id", "transaction_loggable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00], ["transaction_id", 1], ["transaction_loggable_id", 1], ["transaction_loggable_type", "User"], ["updated_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mTransactionable::RemoteTransaction Load (0.1ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteTransaction') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "Transactionable::Transaction"]]
+ [1m[36m (2.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "transactionable_credit_cards" ("created_at", "credit_cardable_id", "credit_cardable_type", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00], ["credit_cardable_id", 1], ["credit_cardable_type", "User"], ["updated_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"], ["type", "Transactionable::RemoteCreditCard"], ["updated_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP2hgu613pxQrR6LufBofGhW/cards/CC2jcda3YthlpkHu2QplhpEu"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mTransactionable::CreditCard Load (0.1ms)[0m SELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mTransactionable::RemoteCreditCard Load (0.2ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCreditCard') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mUPDATE "transactionable_credit_cards" SET "description" = ?, "last_four" = ?, "brand" = ?, "expiration_month" = ?, "expiration_year" = ?, "expiration_date" = ?, "updated_at" = ? WHERE "transactionable_credit_cards"."id" = 1[0m [["description", "Visa (1111)"], ["last_four", 1111], ["brand", "Visa"], ["expiration_month", 12], ["expiration_year", 2016], ["expiration_date", Thu, 01 Dec 2016], ["updated_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mTransactionable::RemoteCustomer Load (0.1ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "User"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "synced_at", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "User"], ["synced_at", 2014-03-10 09:48:15 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00], ["uri", "/v1/customers/CU2kPDAMO1FMAqryJzPaSrvs"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mTransactionable::RemoteCustomer Load (0.2ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "User"]]
+ [1m[36mTransactionable::CreditCard Load (0.2ms)[0m [1mSELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."credit_cardable_id" = ? AND "transactionable_credit_cards"."credit_cardable_type" = ? ORDER BY "transactionable_credit_cards"."id" ASC LIMIT 1[0m [["credit_cardable_id", 1], ["credit_cardable_type", "User"]]
+ [1m[35mTransactionable::RemoteCreditCard Load (0.2ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCreditCard') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "transactionable_transactions" ("amount", "created_at", "status", "type", "updated_at") VALUES (?, ?, ?, ?, ?) [["amount", #<BigDecimal:1014dcdd8,'0.1337E2',18(45)>], ["created_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00], ["status", "succeeded"], ["type", "Transactionable::Debit"], ["updated_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::Transaction"], ["type", "Transactionable::RemoteTransaction"], ["updated_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP2hgu613pxQrR6LufBofGhW/debits/WD2qO5ACyGfr2zsdw8XUSv6f"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m UPDATE "transactionable_transactions" SET "transactionable_id" = ?, "transactionable_type" = ?, "updated_at" = ? WHERE "transactionable_transactions"."type" IN ('Transactionable::Debit') AND "transactionable_transactions"."id" = 1 [["transactionable_id", 1], ["transactionable_type", "Transactionable::CreditCard"], ["updated_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mTransactionable::Transaction Load (0.1ms)[0m SELECT "transactionable_transactions".* FROM "transactionable_transactions" WHERE "transactionable_transactions"."transactionable_id" = ? AND "transactionable_transactions"."transactionable_type" = ? ORDER BY "transactionable_transactions"."id" ASC LIMIT 1 [["transactionable_id", 1], ["transactionable_type", "Transactionable::CreditCard"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "transactionable_transaction_logs" ("created_at", "transaction_id", "transaction_loggable_id", "transaction_loggable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00], ["transaction_id", 1], ["transaction_loggable_id", 1], ["transaction_loggable_type", "User"], ["updated_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mTransactionable::RemoteTransaction Load (0.1ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteTransaction') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "Transactionable::Transaction"]]
+ [1m[36mTransactionable::Debit Load (0.3ms)[0m [1mSELECT "transactionable_transactions".* FROM "transactionable_transactions" WHERE "transactionable_transactions"."type" IN ('Transactionable::Debit') AND "transactionable_transactions"."transactionable_id" = ? AND "transactionable_transactions"."transactionable_type" = ? ORDER BY "transactionable_transactions"."id" ASC LIMIT 1[0m [["transactionable_id", 1], ["transactionable_type", "Transactionable::CreditCard"]]
+ [1m[35m (0.6ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.6ms)[0m INSERT INTO "transactionable_credit_cards" ("created_at", "credit_cardable_id", "credit_cardable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00], ["credit_cardable_id", 1], ["credit_cardable_type", "User"], ["updated_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"], ["type", "Transactionable::RemoteCreditCard"], ["updated_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP2hgu613pxQrR6LufBofGhW/cards/CC2jcda3YthlpkHu2QplhpEu"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mTransactionable::CreditCard Load (0.1ms)[0m [1mSELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mTransactionable::RemoteCreditCard Load (0.2ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCreditCard') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m UPDATE "transactionable_credit_cards" SET "description" = ?, "last_four" = ?, "brand" = ?, "expiration_month" = ?, "expiration_year" = ?, "expiration_date" = ?, "updated_at" = ? WHERE "transactionable_credit_cards"."id" = 1 [["description", "Visa (1111)"], ["last_four", 1111], ["brand", "Visa"], ["expiration_month", 12], ["expiration_year", 2016], ["expiration_date", Thu, 01 Dec 2016], ["updated_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mTransactionable::RemoteCustomer Load (0.2ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "User"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "synced_at", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "User"], ["synced_at", 2014-03-10 09:48:16 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00], ["uri", "/v1/customers/CU2kPDAMO1FMAqryJzPaSrvs"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mTransactionable::RemoteCustomer Load (0.2ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "User"]]
+ [1m[35mTransactionable::CreditCard Load (0.2ms)[0m SELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."credit_cardable_id" = ? AND "transactionable_credit_cards"."credit_cardable_type" = ? ORDER BY "transactionable_credit_cards"."id" ASC LIMIT 1 [["credit_cardable_id", 1], ["credit_cardable_type", "User"]]
+ [1m[36mTransactionable::RemoteCreditCard Load (0.2ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCreditCard') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "transactionable_transactions" ("amount", "created_at", "status", "type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["amount", #<BigDecimal:10130e768,'0.1337E2',18(45)>], ["created_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00], ["status", "succeeded"], ["type", "Transactionable::Debit"], ["updated_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::Transaction"], ["type", "Transactionable::RemoteTransaction"], ["updated_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP2hgu613pxQrR6LufBofGhW/debits/WD2qO5ACyGfr2zsdw8XUSv6f"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mUPDATE "transactionable_transactions" SET "transactionable_id" = ?, "transactionable_type" = ?, "updated_at" = ? WHERE "transactionable_transactions"."type" IN ('Transactionable::Debit') AND "transactionable_transactions"."id" = 1[0m [["transactionable_id", 1], ["transactionable_type", "Transactionable::CreditCard"], ["updated_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mTransactionable::Transaction Load (0.1ms)[0m [1mSELECT "transactionable_transactions".* FROM "transactionable_transactions" WHERE "transactionable_transactions"."transactionable_id" = ? AND "transactionable_transactions"."transactionable_type" = ? ORDER BY "transactionable_transactions"."id" ASC LIMIT 1[0m [["transactionable_id", 1], ["transactionable_type", "Transactionable::CreditCard"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "transactionable_transaction_logs" ("created_at", "transaction_id", "transaction_loggable_id", "transaction_loggable_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00], ["transaction_id", 1], ["transaction_loggable_id", 1], ["transaction_loggable_type", "User"], ["updated_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mTransactionable::RemoteTransaction Load (0.1ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteTransaction') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "Transactionable::Transaction"]]
+ [1m[35mTransactionable::Debit Load (0.3ms)[0m SELECT "transactionable_transactions".* FROM "transactionable_transactions" WHERE "transactionable_transactions"."type" IN ('Transactionable::Debit') AND "transactionable_transactions"."transactionable_id" = ? AND "transactionable_transactions"."transactionable_type" = ? [["transactionable_id", 1], ["transactionable_type", "Transactionable::CreditCard"]]
+ [1m[36m (2.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "transactionable_credit_cards" ("created_at", "credit_cardable_id", "credit_cardable_type", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00], ["credit_cardable_id", 1], ["credit_cardable_type", "User"], ["updated_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"], ["type", "Transactionable::RemoteCreditCard"], ["updated_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP2hgu613pxQrR6LufBofGhW/cards/CC2jcda3YthlpkHu2QplhpEu"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mTransactionable::CreditCard Load (0.1ms)[0m SELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mTransactionable::RemoteCreditCard Load (0.2ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCreditCard') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mUPDATE "transactionable_credit_cards" SET "description" = ?, "last_four" = ?, "brand" = ?, "expiration_month" = ?, "expiration_year" = ?, "expiration_date" = ?, "updated_at" = ? WHERE "transactionable_credit_cards"."id" = 1[0m [["description", "Visa (1111)"], ["last_four", 1111], ["brand", "Visa"], ["expiration_month", 12], ["expiration_year", 2016], ["expiration_date", Thu, 01 Dec 2016], ["updated_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mTransactionable::RemoteCustomer Load (0.1ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "User"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "synced_at", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "User"], ["synced_at", 2014-03-10 09:48:17 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00], ["uri", "/v1/customers/CU2kPDAMO1FMAqryJzPaSrvs"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mTransactionable::RemoteCustomer Load (0.2ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "User"]]
+ [1m[36mTransactionable::CreditCard Load (0.2ms)[0m [1mSELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."credit_cardable_id" = ? AND "transactionable_credit_cards"."credit_cardable_type" = ? ORDER BY "transactionable_credit_cards"."id" ASC LIMIT 1[0m [["credit_cardable_id", 1], ["credit_cardable_type", "User"]]
+ [1m[35mTransactionable::RemoteCreditCard Load (0.2ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCreditCard') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "transactionable_transactions" ("amount", "created_at", "status", "type", "updated_at") VALUES (?, ?, ?, ?, ?) [["amount", #<BigDecimal:103f5c770,'0.1337E2',18(45)>], ["created_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00], ["status", "succeeded"], ["type", "Transactionable::Debit"], ["updated_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::Transaction"], ["type", "Transactionable::RemoteTransaction"], ["updated_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP2hgu613pxQrR6LufBofGhW/debits/WD2qO5ACyGfr2zsdw8XUSv6f"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m UPDATE "transactionable_transactions" SET "transactionable_id" = ?, "transactionable_type" = ?, "updated_at" = ? WHERE "transactionable_transactions"."type" IN ('Transactionable::Debit') AND "transactionable_transactions"."id" = 1 [["transactionable_id", 1], ["transactionable_type", "Transactionable::CreditCard"], ["updated_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mTransactionable::Transaction Load (0.1ms)[0m SELECT "transactionable_transactions".* FROM "transactionable_transactions" WHERE "transactionable_transactions"."transactionable_id" = ? AND "transactionable_transactions"."transactionable_type" = ? ORDER BY "transactionable_transactions"."id" ASC LIMIT 1 [["transactionable_id", 1], ["transactionable_type", "Transactionable::CreditCard"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "transactionable_transaction_logs" ("created_at", "transaction_id", "transaction_loggable_id", "transaction_loggable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00], ["transaction_id", 1], ["transaction_loggable_id", 1], ["transaction_loggable_type", "User"], ["updated_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mTransactionable::RemoteTransaction Load (0.1ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteTransaction') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "Transactionable::Transaction"]]
+ [1m[36mTransactionable::Transaction Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "transactionable_transactions" INNER JOIN "transactionable_transaction_logs" ON "transactionable_transactions"."id" = "transactionable_transaction_logs"."transaction_id" WHERE "transactionable_transaction_logs"."transaction_loggable_id" = ? AND "transactionable_transaction_logs"."transaction_loggable_type" = ? AND "transactionable_transactions"."id" = 1 LIMIT 1[0m [["transaction_loggable_id", 1], ["transaction_loggable_type", "User"]]
+ [1m[35m (0.6ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.6ms)[0m INSERT INTO "transactionable_credit_cards" ("created_at", "credit_cardable_id", "credit_cardable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00], ["credit_cardable_id", 1], ["credit_cardable_type", "User"], ["updated_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"], ["type", "Transactionable::RemoteCreditCard"], ["updated_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP2hgu613pxQrR6LufBofGhW/cards/CC2jcda3YthlpkHu2QplhpEu"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mTransactionable::CreditCard Load (0.1ms)[0m [1mSELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mTransactionable::RemoteCreditCard Load (0.2ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCreditCard') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m UPDATE "transactionable_credit_cards" SET "description" = ?, "last_four" = ?, "brand" = ?, "expiration_month" = ?, "expiration_year" = ?, "expiration_date" = ?, "updated_at" = ? WHERE "transactionable_credit_cards"."id" = 1 [["description", "Visa (1111)"], ["last_four", 1111], ["brand", "Visa"], ["expiration_month", 12], ["expiration_year", 2016], ["expiration_date", Thu, 01 Dec 2016], ["updated_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mTransactionable::RemoteCustomer Load (0.1ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "User"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "synced_at", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "User"], ["synced_at", 2014-03-10 09:48:18 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00], ["uri", "/v1/customers/CU2kPDAMO1FMAqryJzPaSrvs"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mTransactionable::RemoteCustomer Load (0.2ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "User"]]
+ [1m[35mTransactionable::CreditCard Load (0.2ms)[0m SELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."credit_cardable_id" = ? AND "transactionable_credit_cards"."credit_cardable_type" = ? ORDER BY "transactionable_credit_cards"."id" ASC LIMIT 1 [["credit_cardable_id", 1], ["credit_cardable_type", "User"]]
+ [1m[36mTransactionable::RemoteCreditCard Load (0.2ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCreditCard') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "transactionable_transactions" ("amount", "created_at", "status", "type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["amount", #<BigDecimal:105873880,'0.1337E2',18(45)>], ["created_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00], ["status", "succeeded"], ["type", "Transactionable::Debit"], ["updated_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::Transaction"], ["type", "Transactionable::RemoteTransaction"], ["updated_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP2hgu613pxQrR6LufBofGhW/debits/WD2qO5ACyGfr2zsdw8XUSv6f"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mUPDATE "transactionable_transactions" SET "transactionable_id" = ?, "transactionable_type" = ?, "updated_at" = ? WHERE "transactionable_transactions"."type" IN ('Transactionable::Debit') AND "transactionable_transactions"."id" = 1[0m [["transactionable_id", 1], ["transactionable_type", "Transactionable::CreditCard"], ["updated_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mTransactionable::Transaction Load (0.1ms)[0m [1mSELECT "transactionable_transactions".* FROM "transactionable_transactions" WHERE "transactionable_transactions"."transactionable_id" = ? AND "transactionable_transactions"."transactionable_type" = ? ORDER BY "transactionable_transactions"."id" ASC LIMIT 1[0m [["transactionable_id", 1], ["transactionable_type", "Transactionable::CreditCard"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "transactionable_transaction_logs" ("created_at", "transaction_id", "transaction_loggable_id", "transaction_loggable_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00], ["transaction_id", 1], ["transaction_loggable_id", 1], ["transaction_loggable_type", "User"], ["updated_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mTransactionable::RemoteTransaction Load (0.1ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteTransaction') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "Transactionable::Transaction"]]
+ [1m[35m (2.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "transactionable_credit_cards" ("created_at", "credit_cardable_id", "credit_cardable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00], ["credit_cardable_id", 2], ["credit_cardable_type", "User"], ["updated_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"], ["type", "Transactionable::RemoteCreditCard"], ["updated_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP4BaRyFJYl3py1q3xsf1IVQ/cards/CC4DiEesR18Tr2fPHz5uHbEA"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mTransactionable::CreditCard Load (0.1ms)[0m [1mSELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mTransactionable::RemoteCreditCard Load (0.2ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCreditCard') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m UPDATE "transactionable_credit_cards" SET "description" = ?, "last_four" = ?, "brand" = ?, "expiration_month" = ?, "expiration_year" = ?, "expiration_date" = ?, "updated_at" = ? WHERE "transactionable_credit_cards"."id" = 1 [["description", "Visa (1111)"], ["last_four", 1111], ["brand", "Visa"], ["expiration_month", 12], ["expiration_year", 2016], ["expiration_date", Thu, 01 Dec 2016], ["updated_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mTransactionable::RemoteCustomer Load (0.1ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 2], ["local_entity_type", "User"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "synced_at", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "User"], ["synced_at", 2014-03-10 09:48:18 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00], ["uri", "/v1/customers/CU4EPqzr7YWAegGwGTBNZa76"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mTransactionable::RemoteCustomer Load (0.2ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 2], ["local_entity_type", "User"]]
+ [1m[35mTransactionable::CreditCard Load (0.1ms)[0m SELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."credit_cardable_id" = ? AND "transactionable_credit_cards"."credit_cardable_type" = ? ORDER BY "transactionable_credit_cards"."id" ASC LIMIT 1 [["credit_cardable_id", 2], ["credit_cardable_type", "User"]]
+ [1m[36m (2.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "transactionable_credit_cards" ("created_at", "credit_cardable_id", "credit_cardable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00], ["credit_cardable_id", 2], ["credit_cardable_type", "User"], ["updated_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"], ["type", "Transactionable::RemoteCreditCard"], ["updated_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP4BaRyFJYl3py1q3xsf1IVQ/cards/CC4DiEesR18Tr2fPHz5uHbEA"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mTransactionable::CreditCard Load (0.1ms)[0m [1mSELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mTransactionable::RemoteCreditCard Load (0.2ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCreditCard') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m UPDATE "transactionable_credit_cards" SET "description" = ?, "last_four" = ?, "brand" = ?, "expiration_month" = ?, "expiration_year" = ?, "expiration_date" = ?, "updated_at" = ? WHERE "transactionable_credit_cards"."id" = 1 [["description", "Visa (1111)"], ["last_four", 1111], ["brand", "Visa"], ["expiration_month", 12], ["expiration_year", 2016], ["expiration_date", Thu, 01 Dec 2016], ["updated_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mTransactionable::RemoteCustomer Load (0.1ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 2], ["local_entity_type", "User"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "synced_at", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "User"], ["synced_at", 2014-03-10 09:48:19 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00], ["uri", "/v1/customers/CU4EPqzr7YWAegGwGTBNZa76"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mTransactionable::RemoteCustomer Load (0.2ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 2], ["local_entity_type", "User"]]
+ [1m[35mTransactionable::CreditCard Load (0.1ms)[0m SELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."credit_cardable_id" = ? AND "transactionable_credit_cards"."credit_cardable_type" = ? ORDER BY "transactionable_credit_cards"."id" ASC LIMIT 1 [["credit_cardable_id", 2], ["credit_cardable_type", "User"]]
+ [1m[36mTransactionable::RemoteCreditCard Load (0.2ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCreditCard') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"]]
+ [1m[35m (2.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "transactionable_credit_cards" ("created_at", "credit_cardable_id", "credit_cardable_type", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00], ["credit_cardable_id", 2], ["credit_cardable_type", "User"], ["updated_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"], ["type", "Transactionable::RemoteCreditCard"], ["updated_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP4BaRyFJYl3py1q3xsf1IVQ/cards/CC4DiEesR18Tr2fPHz5uHbEA"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mTransactionable::CreditCard Load (0.1ms)[0m SELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mTransactionable::RemoteCreditCard Load (0.2ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCreditCard') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mUPDATE "transactionable_credit_cards" SET "description" = ?, "last_four" = ?, "brand" = ?, "expiration_month" = ?, "expiration_year" = ?, "expiration_date" = ?, "updated_at" = ? WHERE "transactionable_credit_cards"."id" = 1[0m [["description", "Visa (1111)"], ["last_four", 1111], ["brand", "Visa"], ["expiration_month", 12], ["expiration_year", 2016], ["expiration_date", Thu, 01 Dec 2016], ["updated_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mTransactionable::RemoteCustomer Load (0.1ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 2], ["local_entity_type", "User"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "synced_at", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "User"], ["synced_at", 2014-03-10 09:48:19 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00], ["uri", "/v1/customers/CU4EPqzr7YWAegGwGTBNZa76"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mTransactionable::RemoteCustomer Load (0.2ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 2], ["local_entity_type", "User"]]
+ [1m[36mTransactionable::CreditCard Load (0.1ms)[0m [1mSELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."credit_cardable_id" = ? AND "transactionable_credit_cards"."credit_cardable_type" = ? ORDER BY "transactionable_credit_cards"."id" ASC LIMIT 1[0m [["credit_cardable_id", 2], ["credit_cardable_type", "User"]]
+ [1m[35mTransactionable::CreditCard Load (0.2ms)[0m SELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."credit_cardable_id" = ? AND "transactionable_credit_cards"."credit_cardable_type" = ? [["credit_cardable_id", 2], ["credit_cardable_type", "User"]]
+ [1m[36m (2.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 10 Mar 2014 13:48:20 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:20 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:20 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:20 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mTransactionable::RemoteCustomer Load (0.1ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 2], ["local_entity_type", "User"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "synced_at", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:20 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "User"], ["synced_at", 2014-03-10 09:48:20 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Mon, 10 Mar 2014 13:48:20 UTC +00:00], ["uri", "/v1/customers/CU3jmsm9nnkhJmPp5YKJE5SK"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mTransactionable::RemoteCustomer Load (0.2ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 2], ["local_entity_type", "User"]]
+ [1m[36m (2.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 10 Mar 2014 13:48:20 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:20 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:20 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:20 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mTransactionable::RemoteCustomer Load (0.1ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 2], ["local_entity_type", "User"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "synced_at", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:20 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "User"], ["synced_at", 2014-03-10 09:48:20 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Mon, 10 Mar 2014 13:48:20 UTC +00:00], ["uri", "/v1/customers/CU3jmsm9nnkhJmPp5YKJE5SK"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mTransactionable::RemoteCustomer Load (0.2ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 2], ["local_entity_type", "User"]]
+ [1m[36m (2.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 10 Mar 2014 13:48:20 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:20 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:20 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:20 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mTransactionable::RemoteCustomer Load (0.1ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 2], ["local_entity_type", "User"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "synced_at", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:20 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "User"], ["synced_at", 2014-03-10 09:48:20 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Mon, 10 Mar 2014 13:48:20 UTC +00:00], ["uri", "/v1/customers/CU3DIXq7UemATmqKcGWRGaqs"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mTransactionable::RemoteCustomer Load (0.1ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 2], ["local_entity_type", "User"]]
+ [1m[36m (2.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mTransactionable::RemoteCustomer Load (0.1ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 2], ["local_entity_type", "User"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "synced_at", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "User"], ["synced_at", 2014-03-10 09:48:21 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["uri", "/v1/customers/CU3DIXq7UemATmqKcGWRGaqs"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mTransactionable::RemoteCustomer Load (0.2ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 2], ["local_entity_type", "User"]]
+ [1m[36m (2.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "transactionable_bank_accounts" ("bank_accountable_id", "bank_accountable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["bank_accountable_id", 2], ["bank_accountable_type", "User"], ["created_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::BankAccount"], ["type", "Transactionable::RemoteBankAccount"], ["updated_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["uri", "/v1/bank_accounts/BA4VaKDWeShJgL5JIEMhjGjw"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mTransactionable::BankAccount Load (0.2ms)[0m SELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mTransactionable::RemoteBankAccount Load (0.3ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteBankAccount') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "Transactionable::BankAccount"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mUPDATE "transactionable_bank_accounts" SET "bank_name" = ?, "description" = ?, "name" = ?, "can_debit" = ?, "account_type" = ?, "updated_at" = ? WHERE "transactionable_bank_accounts"."id" = 1[0m [["bank_name", "JPMORGAN CHASE BANK"], ["description", "xxxxxx0002"], ["name", "Mario"], ["can_debit", false], ["account_type", "checking"], ["updated_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mTransactionable::RemoteCustomer Load (0.2ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 2], ["local_entity_type", "User"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "synced_at", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "User"], ["synced_at", 2014-03-10 09:48:21 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["uri", "/v1/customers/CU4ZCytqblNrwcEJ7PvNRQIL"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mTransactionable::RemoteCustomer Load (0.4ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 2], ["local_entity_type", "User"]]
+ [1m[36mTransactionable::BankAccount Load (0.3ms)[0m [1mSELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."bank_accountable_id" = ? AND "transactionable_bank_accounts"."bank_accountable_type" = ? ORDER BY "transactionable_bank_accounts"."id" ASC LIMIT 1[0m [["bank_accountable_id", 2], ["bank_accountable_type", "User"]]
+ [1m[35m (2.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "transactionable_bank_accounts" ("bank_accountable_id", "bank_accountable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["bank_accountable_id", 2], ["bank_accountable_type", "User"], ["created_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::BankAccount"], ["type", "Transactionable::RemoteBankAccount"], ["updated_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["uri", "/v1/bank_accounts/BA4VaKDWeShJgL5JIEMhjGjw"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mTransactionable::BankAccount Load (0.1ms)[0m SELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mTransactionable::RemoteBankAccount Load (0.2ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteBankAccount') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "Transactionable::BankAccount"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mUPDATE "transactionable_bank_accounts" SET "bank_name" = ?, "description" = ?, "name" = ?, "can_debit" = ?, "account_type" = ?, "updated_at" = ? WHERE "transactionable_bank_accounts"."id" = 1[0m [["bank_name", "JPMORGAN CHASE BANK"], ["description", "xxxxxx0002"], ["name", "Mario"], ["can_debit", false], ["account_type", "checking"], ["updated_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mTransactionable::RemoteCustomer Load (0.2ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 2], ["local_entity_type", "User"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "synced_at", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:22 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "User"], ["synced_at", 2014-03-10 09:48:22 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Mon, 10 Mar 2014 13:48:22 UTC +00:00], ["uri", "/v1/customers/CU4ZCytqblNrwcEJ7PvNRQIL"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mTransactionable::RemoteCustomer Load (0.2ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 2], ["local_entity_type", "User"]]
+ [1m[36mTransactionable::BankAccount Load (0.2ms)[0m [1mSELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."bank_accountable_id" = ? AND "transactionable_bank_accounts"."bank_accountable_type" = ? ORDER BY "transactionable_bank_accounts"."id" ASC LIMIT 1[0m [["bank_accountable_id", 2], ["bank_accountable_type", "User"]]
+ [1m[35mTransactionable::RemoteBankAccount Load (0.2ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteBankAccount') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "Transactionable::BankAccount"]]
+ [1m[36m (2.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 10 Mar 2014 13:48:22 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:22 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:22 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:22 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "transactionable_bank_accounts" ("bank_accountable_id", "bank_accountable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["bank_accountable_id", 2], ["bank_accountable_type", "User"], ["created_at", Mon, 10 Mar 2014 13:48:22 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:22 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:22 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::BankAccount"], ["type", "Transactionable::RemoteBankAccount"], ["updated_at", Mon, 10 Mar 2014 13:48:22 UTC +00:00], ["uri", "/v1/bank_accounts/BA4VaKDWeShJgL5JIEMhjGjw"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mTransactionable::BankAccount Load (0.1ms)[0m [1mSELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mTransactionable::RemoteBankAccount Load (0.2ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteBankAccount') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "Transactionable::BankAccount"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m UPDATE "transactionable_bank_accounts" SET "bank_name" = ?, "description" = ?, "name" = ?, "can_debit" = ?, "account_type" = ?, "updated_at" = ? WHERE "transactionable_bank_accounts"."id" = 1 [["bank_name", "JPMORGAN CHASE BANK"], ["description", "xxxxxx0002"], ["name", "Mario"], ["can_debit", false], ["account_type", "checking"], ["updated_at", Mon, 10 Mar 2014 13:48:22 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mTransactionable::RemoteCustomer Load (0.1ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 2], ["local_entity_type", "User"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "synced_at", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:22 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "User"], ["synced_at", 2014-03-10 09:48:22 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Mon, 10 Mar 2014 13:48:22 UTC +00:00], ["uri", "/v1/customers/CU4ZCytqblNrwcEJ7PvNRQIL"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mTransactionable::RemoteCustomer Load (0.2ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 2], ["local_entity_type", "User"]]
+ [1m[35mTransactionable::BankAccount Load (0.2ms)[0m SELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."bank_accountable_id" = ? AND "transactionable_bank_accounts"."bank_accountable_type" = ? ORDER BY "transactionable_bank_accounts"."id" ASC LIMIT 1 [["bank_accountable_id", 2], ["bank_accountable_type", "User"]]
+ [1m[36mTransactionable::BankAccount Load (0.2ms)[0m [1mSELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."bank_accountable_id" = ? AND "transactionable_bank_accounts"."bank_accountable_type" = ?[0m [["bank_accountable_id", 2], ["bank_accountable_type", "User"]]
+ [1m[35m (2.0ms)[0m rollback transaction