spec/dummy/log/test.log in transactionable-0.3.0 vs spec/dummy/log/test.log in transactionable-0.3.1
- old
+ new
@@ -3344,5 +3344,882 @@
[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
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (5.9ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 11 Apr 2014 17:33:10 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:33:10 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 11 Apr 2014 17:33:11 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:33:11 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 (1.1ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 11 Apr 2014 17:33:11 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:33:11 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.5ms)[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", Fri, 11 Apr 2014 17:33:11 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:33:11 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [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", Fri, 11 Apr 2014 17:33:11 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:33:11 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", Fri, 11 Apr 2014 17:33:11 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:33:11 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_bank_accounts" ("bank_accountable_id", "bank_accountable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["bank_accountable_id", 2], ["bank_accountable_type", "User"], ["created_at", Fri, 11 Apr 2014 17:33:11 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:33:11 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [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", Fri, 11 Apr 2014 17:33:11 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:33:11 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", Fri, 11 Apr 2014 17:33:11 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:33:11 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", Fri, 11 Apr 2014 17:33:11 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:33:11 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (1.9ms)[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", Fri, 11 Apr 2014 17:33:11 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:33:11 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.8ms)[0m [1mINSERT INTO "transactionable_credit_cards" ("created_at", "credit_cardable_id", "credit_cardable_type", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 17:33:11 UTC +00:00], ["credit_cardable_id", 1], ["credit_cardable_type", "User"], ["updated_at", Fri, 11 Apr 2014 17:33:11 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", Fri, 11 Apr 2014 17:33:11 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"], ["type", "Transactionable::RemoteCreditCard"], ["updated_at", Fri, 11 Apr 2014 17:33:11 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.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.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", Fri, 11 Apr 2014 17:33:11 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.6ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "synced_at", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 17:33:11 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "User"], ["synced_at", 2014-04-11 13:33:11 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Fri, 11 Apr 2014 17:33:11 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 (3.3ms)[0m INSERT INTO "transactionable_transactions" ("amount", "created_at", "status", "type", "updated_at") VALUES (?, ?, ?, ?, ?) [["amount", #<BigDecimal:10507b0b0,'0.1337E2',18(36)>], ["created_at", Fri, 11 Apr 2014 17:33:12 UTC +00:00], ["status", "succeeded"], ["type", "Transactionable::Debit"], ["updated_at", Fri, 11 Apr 2014 17:33:12 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", Fri, 11 Apr 2014 17:33:12 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::Transaction"], ["type", "Transactionable::RemoteTransaction"], ["updated_at", Fri, 11 Apr 2014 17:33:12 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.4ms)[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", Fri, 11 Apr 2014 17:33:12 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mTransactionable::Transaction Load (0.3ms)[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.5ms)[0m INSERT INTO "transactionable_transaction_logs" ("created_at", "transaction_id", "transaction_loggable_id", "transaction_loggable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 17:33:12 UTC +00:00], ["transaction_id", 1], ["transaction_loggable_id", 1], ["transaction_loggable_type", "User"], ["updated_at", Fri, 11 Apr 2014 17:33:12 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mTransactionable::RemoteTransaction Load (0.3ms)[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", Fri, 11 Apr 2014 17:33:12 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:33:12 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", Fri, 11 Apr 2014 17:33:12 UTC +00:00], ["credit_cardable_id", 1], ["credit_cardable_type", "User"], ["updated_at", Fri, 11 Apr 2014 17:33:12 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", Fri, 11 Apr 2014 17:33:12 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"], ["type", "Transactionable::RemoteCreditCard"], ["updated_at", Fri, 11 Apr 2014 17:33:12 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", Fri, 11 Apr 2014 17:33:12 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", 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", Fri, 11 Apr 2014 17:33:12 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "User"], ["synced_at", 2014-04-11 13:33:12 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Fri, 11 Apr 2014 17:33:12 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.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", 1], ["credit_cardable_type", "User"]]
+ [1m[35mTransactionable::RemoteCreditCard Load (0.1ms)[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:1052e6110,'0.1337E2',18(36)>], ["created_at", Fri, 11 Apr 2014 17:33:13 UTC +00:00], ["status", "succeeded"], ["type", "Transactionable::Debit"], ["updated_at", Fri, 11 Apr 2014 17:33:13 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", Fri, 11 Apr 2014 17:33:13 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::Transaction"], ["type", "Transactionable::RemoteTransaction"], ["updated_at", Fri, 11 Apr 2014 17:33:13 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP2hgu613pxQrR6LufBofGhW/debits/WD2qO5ACyGfr2zsdw8XUSv6f"]]
+ [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 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", Fri, 11 Apr 2014 17:33:13 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", Fri, 11 Apr 2014 17:33:13 UTC +00:00], ["transaction_id", 1], ["transaction_loggable_id", 1], ["transaction_loggable_type", "User"], ["updated_at", Fri, 11 Apr 2014 17:33:13 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 (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", Fri, 11 Apr 2014 17:33:13 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:33:13 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.5ms)[0m INSERT INTO "transactionable_credit_cards" ("created_at", "credit_cardable_id", "credit_cardable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 17:33:13 UTC +00:00], ["credit_cardable_id", 1], ["credit_cardable_type", "User"], ["updated_at", Fri, 11 Apr 2014 17:33:13 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", Fri, 11 Apr 2014 17:33:13 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"], ["type", "Transactionable::RemoteCreditCard"], ["updated_at", Fri, 11 Apr 2014 17:33:13 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", Fri, 11 Apr 2014 17:33:13 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", Fri, 11 Apr 2014 17:33:13 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "User"], ["synced_at", 2014-04-11 13:33:13 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Fri, 11 Apr 2014 17:33:13 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.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", 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:101b4acd8,'0.1337E2',18(36)>], ["created_at", Fri, 11 Apr 2014 17:33:13 UTC +00:00], ["status", "succeeded"], ["type", "Transactionable::Debit"], ["updated_at", Fri, 11 Apr 2014 17:33:13 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", Fri, 11 Apr 2014 17:33:13 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::Transaction"], ["type", "Transactionable::RemoteTransaction"], ["updated_at", Fri, 11 Apr 2014 17:33:13 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", Fri, 11 Apr 2014 17:33:13 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.4ms)[0m [1mINSERT INTO "transactionable_transaction_logs" ("created_at", "transaction_id", "transaction_loggable_id", "transaction_loggable_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 17:33:13 UTC +00:00], ["transaction_id", 1], ["transaction_loggable_id", 1], ["transaction_loggable_type", "User"], ["updated_at", Fri, 11 Apr 2014 17:33:13 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mTransactionable::RemoteTransaction Load (0.2ms)[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::Transaction Exists (0.2ms)[0m SELECT 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 [["transaction_loggable_id", 1], ["transaction_loggable_type", "User"]]
+ [1m[36m (0.8ms)[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", Fri, 11 Apr 2014 17:33:13 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:33:13 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.5ms)[0m [1mINSERT INTO "transactionable_credit_cards" ("created_at", "credit_cardable_id", "credit_cardable_type", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 17:33:13 UTC +00:00], ["credit_cardable_id", 1], ["credit_cardable_type", "User"], ["updated_at", Fri, 11 Apr 2014 17:33:13 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", Fri, 11 Apr 2014 17:33:13 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"], ["type", "Transactionable::RemoteCreditCard"], ["updated_at", Fri, 11 Apr 2014 17:33:13 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.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.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", Fri, 11 Apr 2014 17:33:14 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", Fri, 11 Apr 2014 17:33:14 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "User"], ["synced_at", 2014-04-11 13:33:14 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Fri, 11 Apr 2014 17:33: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.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.3ms)[0m INSERT INTO "transactionable_transactions" ("amount", "created_at", "status", "type", "updated_at") VALUES (?, ?, ?, ?, ?) [["amount", #<BigDecimal:10504bf40,'0.1337E2',18(36)>], ["created_at", Fri, 11 Apr 2014 17:33:14 UTC +00:00], ["status", "succeeded"], ["type", "Transactionable::Debit"], ["updated_at", Fri, 11 Apr 2014 17:33:14 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", Fri, 11 Apr 2014 17:33:14 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::Transaction"], ["type", "Transactionable::RemoteTransaction"], ["updated_at", Fri, 11 Apr 2014 17:33:14 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP2hgu613pxQrR6LufBofGhW/debits/WD2qO5ACyGfr2zsdw8XUSv6f"]]
+ [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 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", Fri, 11 Apr 2014 17:33:14 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", Fri, 11 Apr 2014 17:33:14 UTC +00:00], ["transaction_id", 1], ["transaction_loggable_id", 1], ["transaction_loggable_type", "User"], ["updated_at", Fri, 11 Apr 2014 17:33:14 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mTransactionable::RemoteTransaction Load (0.2ms)[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.4ms)[0m [1mSELECT "transactionable_transactions".* FROM "transactionable_transactions" WHERE "transactionable_transactions"."type" IN ('Transactionable::Debit') AND "transactionable_transactions"."transactionable_id" = ? AND "transactionable_transactions"."transactionable_type" = ?[0m [["transactionable_id", 1], ["transactionable_type", "Transactionable::CreditCard"]]
+ [1m[35m (2.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", Fri, 11 Apr 2014 17:33:14 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:33: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.6ms)[0m INSERT INTO "transactionable_credit_cards" ("created_at", "credit_cardable_id", "credit_cardable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 17:33:14 UTC +00:00], ["credit_cardable_id", 1], ["credit_cardable_type", "User"], ["updated_at", Fri, 11 Apr 2014 17:33: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", Fri, 11 Apr 2014 17:33:14 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"], ["type", "Transactionable::RemoteCreditCard"], ["updated_at", Fri, 11 Apr 2014 17:33:14 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", Fri, 11 Apr 2014 17:33:14 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", Fri, 11 Apr 2014 17:33:14 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "User"], ["synced_at", 2014-04-11 13:33:14 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Fri, 11 Apr 2014 17:33:14 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.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[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", 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:1052ee8d8,'0.1337E2',18(36)>], ["created_at", Fri, 11 Apr 2014 17:33:15 UTC +00:00], ["status", "succeeded"], ["type", "Transactionable::Debit"], ["updated_at", Fri, 11 Apr 2014 17:33:15 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", Fri, 11 Apr 2014 17:33:15 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::Transaction"], ["type", "Transactionable::RemoteTransaction"], ["updated_at", Fri, 11 Apr 2014 17:33:15 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", Fri, 11 Apr 2014 17:33:15 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.3ms)[0m [1mINSERT INTO "transactionable_transaction_logs" ("created_at", "transaction_id", "transaction_loggable_id", "transaction_loggable_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 17:33:15 UTC +00:00], ["transaction_id", 1], ["transaction_loggable_id", 1], ["transaction_loggable_type", "User"], ["updated_at", Fri, 11 Apr 2014 17:33:15 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 (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", Fri, 11 Apr 2014 17:33:15 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:33: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.5ms)[0m INSERT INTO "transactionable_credit_cards" ("created_at", "credit_cardable_id", "credit_cardable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 17:33:15 UTC +00:00], ["credit_cardable_id", 1], ["credit_cardable_type", "User"], ["updated_at", Fri, 11 Apr 2014 17:33:15 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.3ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 17:33:15 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"], ["type", "Transactionable::RemoteCreditCard"], ["updated_at", Fri, 11 Apr 2014 17:33:15 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", Fri, 11 Apr 2014 17:33:15 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", Fri, 11 Apr 2014 17:33:15 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "User"], ["synced_at", 2014-04-11 13:33:15 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Fri, 11 Apr 2014 17:33:15 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.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", 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:1010994d8,'0.1337E2',18(36)>], ["created_at", Fri, 11 Apr 2014 17:33:15 UTC +00:00], ["status", "succeeded"], ["type", "Transactionable::Debit"], ["updated_at", Fri, 11 Apr 2014 17:33: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", Fri, 11 Apr 2014 17:33:15 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::Transaction"], ["type", "Transactionable::RemoteTransaction"], ["updated_at", Fri, 11 Apr 2014 17:33:15 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", Fri, 11 Apr 2014 17:33:15 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.3ms)[0m [1mINSERT INTO "transactionable_transaction_logs" ("created_at", "transaction_id", "transaction_loggable_id", "transaction_loggable_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 17:33:15 UTC +00:00], ["transaction_id", 1], ["transaction_loggable_id", 1], ["transaction_loggable_type", "User"], ["updated_at", Fri, 11 Apr 2014 17:33:15 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.3ms)[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", Fri, 11 Apr 2014 17:33:15 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:33:15 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", Fri, 11 Apr 2014 17:33:16 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:33: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.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 11 Apr 2014 17:33:16 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:33:16 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.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", Fri, 11 Apr 2014 17:33:16 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "User"], ["synced_at", 2014-04-11 13:33:16 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Fri, 11 Apr 2014 17:33:16 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.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 11 Apr 2014 17:33:16 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:33: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.5ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 11 Apr 2014 17:33:16 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:33:16 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", Fri, 11 Apr 2014 17:33:16 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "User"], ["synced_at", 2014-04-11 13:33:16 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Fri, 11 Apr 2014 17:33:16 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.5ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 11 Apr 2014 17:33:16 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:33: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.5ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 11 Apr 2014 17:33:16 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:33:16 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", Fri, 11 Apr 2014 17:33:16 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "User"], ["synced_at", 2014-04-11 13:33:16 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Fri, 11 Apr 2014 17:33:16 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 (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", Fri, 11 Apr 2014 17:33:17 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:33: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.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 11 Apr 2014 17:33:17 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:33: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", 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", Fri, 11 Apr 2014 17:33:17 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "User"], ["synced_at", 2014-04-11 13:33:17 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Fri, 11 Apr 2014 17:33:17 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", Fri, 11 Apr 2014 17:33:17 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:33: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.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 11 Apr 2014 17:33:17 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:33: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.3ms)[0m INSERT INTO "transactionable_credit_cards" ("created_at", "credit_cardable_id", "credit_cardable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 17:33:17 UTC +00:00], ["credit_cardable_id", 2], ["credit_cardable_type", "User"], ["updated_at", Fri, 11 Apr 2014 17:33: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", Fri, 11 Apr 2014 17:33:17 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"], ["type", "Transactionable::RemoteCreditCard"], ["updated_at", Fri, 11 Apr 2014 17:33:17 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.4ms)[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", Fri, 11 Apr 2014 17:33:17 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.3ms)[0m INSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "synced_at", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 17:33:17 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "User"], ["synced_at", 2014-04-11 13:33:17 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Fri, 11 Apr 2014 17:33:17 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::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" = ?[0m [["credit_cardable_id", 2], ["credit_cardable_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", Fri, 11 Apr 2014 17:33:18 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:33: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.4ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 11 Apr 2014 17:33:18 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:33:18 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", Fri, 11 Apr 2014 17:33:18 UTC +00:00], ["credit_cardable_id", 2], ["credit_cardable_type", "User"], ["updated_at", Fri, 11 Apr 2014 17:33: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.2ms)[0m INSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 17:33:18 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"], ["type", "Transactionable::RemoteCreditCard"], ["updated_at", Fri, 11 Apr 2014 17:33:18 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", Fri, 11 Apr 2014 17:33:18 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.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "synced_at", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 17:33:18 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "User"], ["synced_at", 2014-04-11 13:33:18 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Fri, 11 Apr 2014 17:33:18 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::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.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", Fri, 11 Apr 2014 17:33:18 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:33: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", Fri, 11 Apr 2014 17:33:18 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:33:18 UTC +00:00]]
+ [1m[35m (5.6ms)[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", Fri, 11 Apr 2014 17:33:18 UTC +00:00], ["credit_cardable_id", 2], ["credit_cardable_type", "User"], ["updated_at", Fri, 11 Apr 2014 17:33: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", Fri, 11 Apr 2014 17:33:18 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"], ["type", "Transactionable::RemoteCreditCard"], ["updated_at", Fri, 11 Apr 2014 17:33: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", Fri, 11 Apr 2014 17:33: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", Fri, 11 Apr 2014 17:33:18 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "User"], ["synced_at", 2014-04-11 13:33:18 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Fri, 11 Apr 2014 17:33: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.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", 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 (1.9ms)[0m [1mrollback transaction[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (4.9ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 11 Apr 2014 17:35:04 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:35:04 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", Fri, 11 Apr 2014 17:35:04 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:35:04 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 (1.5ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 11 Apr 2014 17:35:04 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:35:04 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", Fri, 11 Apr 2014 17:35:04 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:35:04 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", Fri, 11 Apr 2014 17:35:04 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::BankAccount"], ["type", "Transactionable::RemoteBankAccount"], ["updated_at", Fri, 11 Apr 2014 17:35:04 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", Fri, 11 Apr 2014 17:35:04 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", 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", Fri, 11 Apr 2014 17:35:04 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "User"], ["synced_at", 2014-04-11 13:35:04 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Fri, 11 Apr 2014 17:35:04 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::BankAccount Load (0.1ms)[0m SELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."bank_accountable_id" = ? AND "transactionable_bank_accounts"."bank_accountable_type" = ? [["bank_accountable_id", 2], ["bank_accountable_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", Fri, 11 Apr 2014 17:35:04 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:35:04 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", Fri, 11 Apr 2014 17:35:04 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:35:04 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", Fri, 11 Apr 2014 17:35:04 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:35:04 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", Fri, 11 Apr 2014 17:35:04 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::BankAccount"], ["type", "Transactionable::RemoteBankAccount"], ["updated_at", Fri, 11 Apr 2014 17:35:04 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", Fri, 11 Apr 2014 17:35:05 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", Fri, 11 Apr 2014 17:35:05 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "User"], ["synced_at", 2014-04-11 13:35:05 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Fri, 11 Apr 2014 17:35:05 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.1ms)[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::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 (1.8ms)[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", Fri, 11 Apr 2014 17:35:05 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:35:05 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.8ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 11 Apr 2014 17:35:05 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:35:05 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", Fri, 11 Apr 2014 17:35:05 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:35:05 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", Fri, 11 Apr 2014 17:35:05 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::BankAccount"], ["type", "Transactionable::RemoteBankAccount"], ["updated_at", Fri, 11 Apr 2014 17:35:05 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", Fri, 11 Apr 2014 17:35:05 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.3ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "synced_at", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 17:35:05 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "User"], ["synced_at", 2014-04-11 13:35:05 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Fri, 11 Apr 2014 17:35:05 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.1ms)[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 (0.5ms)[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", Fri, 11 Apr 2014 17:35:05 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:35:05 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.7ms)[0m INSERT INTO "transactionable_credit_cards" ("created_at", "credit_cardable_id", "credit_cardable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 17:35:05 UTC +00:00], ["credit_cardable_id", 1], ["credit_cardable_type", "User"], ["updated_at", Fri, 11 Apr 2014 17:35:05 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_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 17:35:05 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"], ["type", "Transactionable::RemoteCreditCard"], ["updated_at", Fri, 11 Apr 2014 17:35:05 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.2ms)[0m [1mSELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mTransactionable::RemoteCreditCard Load (0.3ms)[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", Fri, 11 Apr 2014 17:35:06 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", Fri, 11 Apr 2014 17:35:06 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "User"], ["synced_at", 2014-04-11 13:35:06 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Fri, 11 Apr 2014 17:35:06 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.3ms)[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:103df1930,'0.1337E2',18(36)>], ["created_at", Fri, 11 Apr 2014 17:35:06 UTC +00:00], ["status", "succeeded"], ["type", "Transactionable::Debit"], ["updated_at", Fri, 11 Apr 2014 17:35:06 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", Fri, 11 Apr 2014 17:35:06 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::Transaction"], ["type", "Transactionable::RemoteTransaction"], ["updated_at", Fri, 11 Apr 2014 17:35:06 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.3ms)[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", Fri, 11 Apr 2014 17:35:06 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mTransactionable::Transaction Load (0.2ms)[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.4ms)[0m [1mINSERT INTO "transactionable_transaction_logs" ("created_at", "transaction_id", "transaction_loggable_id", "transaction_loggable_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 17:35:06 UTC +00:00], ["transaction_id", 1], ["transaction_loggable_id", 1], ["transaction_loggable_type", "User"], ["updated_at", Fri, 11 Apr 2014 17:35:06 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mTransactionable::RemoteTransaction Load (0.3ms)[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", Fri, 11 Apr 2014 17:35:06 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:35:06 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.5ms)[0m [1mINSERT INTO "transactionable_credit_cards" ("created_at", "credit_cardable_id", "credit_cardable_type", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 17:35:06 UTC +00:00], ["credit_cardable_id", 1], ["credit_cardable_type", "User"], ["updated_at", Fri, 11 Apr 2014 17:35:06 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", Fri, 11 Apr 2014 17:35:06 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"], ["type", "Transactionable::RemoteCreditCard"], ["updated_at", Fri, 11 Apr 2014 17:35:06 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", Fri, 11 Apr 2014 17:35:06 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", Fri, 11 Apr 2014 17:35:06 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "User"], ["synced_at", 2014-04-11 13:35:06 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Fri, 11 Apr 2014 17:35:06 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.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", 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.3ms)[0m INSERT INTO "transactionable_transactions" ("amount", "created_at", "status", "type", "updated_at") VALUES (?, ?, ?, ?, ?) [["amount", #<BigDecimal:1058e9af8,'0.1337E2',18(36)>], ["created_at", Fri, 11 Apr 2014 17:35:07 UTC +00:00], ["status", "succeeded"], ["type", "Transactionable::Debit"], ["updated_at", Fri, 11 Apr 2014 17:35:07 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", Fri, 11 Apr 2014 17:35:07 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::Transaction"], ["type", "Transactionable::RemoteTransaction"], ["updated_at", Fri, 11 Apr 2014 17:35:07 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", Fri, 11 Apr 2014 17:35:07 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", Fri, 11 Apr 2014 17:35:07 UTC +00:00], ["transaction_id", 1], ["transaction_loggable_id", 1], ["transaction_loggable_type", "User"], ["updated_at", Fri, 11 Apr 2014 17:35:07 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 (0.7ms)[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", Fri, 11 Apr 2014 17:35:07 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:35:07 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.5ms)[0m [1mINSERT INTO "transactionable_credit_cards" ("created_at", "credit_cardable_id", "credit_cardable_type", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 17:35:07 UTC +00:00], ["credit_cardable_id", 1], ["credit_cardable_type", "User"], ["updated_at", Fri, 11 Apr 2014 17:35:07 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", Fri, 11 Apr 2014 17:35:07 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"], ["type", "Transactionable::RemoteCreditCard"], ["updated_at", Fri, 11 Apr 2014 17:35:07 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", Fri, 11 Apr 2014 17:35:07 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", 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", Fri, 11 Apr 2014 17:35:07 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "User"], ["synced_at", 2014-04-11 13:35:07 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Fri, 11 Apr 2014 17:35:07 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.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", 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.3ms)[0m INSERT INTO "transactionable_transactions" ("amount", "created_at", "status", "type", "updated_at") VALUES (?, ?, ?, ?, ?) [["amount", #<BigDecimal:103907190,'0.1337E2',18(36)>], ["created_at", Fri, 11 Apr 2014 17:35:07 UTC +00:00], ["status", "succeeded"], ["type", "Transactionable::Debit"], ["updated_at", Fri, 11 Apr 2014 17:35:07 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", Fri, 11 Apr 2014 17:35:07 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::Transaction"], ["type", "Transactionable::RemoteTransaction"], ["updated_at", Fri, 11 Apr 2014 17:35:07 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", Fri, 11 Apr 2014 17:35:07 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", Fri, 11 Apr 2014 17:35:07 UTC +00:00], ["transaction_id", 1], ["transaction_loggable_id", 1], ["transaction_loggable_type", "User"], ["updated_at", Fri, 11 Apr 2014 17:35:07 UTC +00:00]]
+ [1m[36m (5.7ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mTransactionable::RemoteTransaction Load (0.2ms)[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.5ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 11 Apr 2014 17:35:08 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:35:08 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.5ms)[0m INSERT INTO "transactionable_credit_cards" ("created_at", "credit_cardable_id", "credit_cardable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 17:35:08 UTC +00:00], ["credit_cardable_id", 1], ["credit_cardable_type", "User"], ["updated_at", Fri, 11 Apr 2014 17:35:08 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", Fri, 11 Apr 2014 17:35:08 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"], ["type", "Transactionable::RemoteCreditCard"], ["updated_at", Fri, 11 Apr 2014 17:35:08 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", Fri, 11 Apr 2014 17:35:08 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", Fri, 11 Apr 2014 17:35:08 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "User"], ["synced_at", 2014-04-11 13:35:08 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Fri, 11 Apr 2014 17:35:08 UTC +00:00], ["uri", "/v1/customers/CU2kPDAMO1FMAqryJzPaSrvs"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mUser Load (0.2ms)[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.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", 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:103d22040,'0.1337E2',18(36)>], ["created_at", Fri, 11 Apr 2014 17:35:08 UTC +00:00], ["status", "succeeded"], ["type", "Transactionable::Debit"], ["updated_at", Fri, 11 Apr 2014 17:35:08 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 (5.8ms)[0m INSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 17:35:08 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::Transaction"], ["type", "Transactionable::RemoteTransaction"], ["updated_at", Fri, 11 Apr 2014 17:35:08 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", Fri, 11 Apr 2014 17:35:08 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", Fri, 11 Apr 2014 17:35:08 UTC +00:00], ["transaction_id", 1], ["transaction_loggable_id", 1], ["transaction_loggable_type", "User"], ["updated_at", Fri, 11 Apr 2014 17:35:08 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" = ? ORDER BY "transactionable_transactions"."id" ASC LIMIT 1 [["transactionable_id", 1], ["transactionable_type", "Transactionable::CreditCard"]]
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 11 Apr 2014 17:35:08 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:35:08 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", Fri, 11 Apr 2014 17:35:08 UTC +00:00], ["credit_cardable_id", 1], ["credit_cardable_type", "User"], ["updated_at", Fri, 11 Apr 2014 17:35:08 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", Fri, 11 Apr 2014 17:35:08 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"], ["type", "Transactionable::RemoteCreditCard"], ["updated_at", Fri, 11 Apr 2014 17:35:08 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", Fri, 11 Apr 2014 17:35:08 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", Fri, 11 Apr 2014 17:35:08 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "User"], ["synced_at", 2014-04-11 13:35:08 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Fri, 11 Apr 2014 17:35:08 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.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", 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.3ms)[0m INSERT INTO "transactionable_transactions" ("amount", "created_at", "status", "type", "updated_at") VALUES (?, ?, ?, ?, ?) [["amount", #<BigDecimal:106053be0,'0.1337E2',18(36)>], ["created_at", Fri, 11 Apr 2014 17:35:09 UTC +00:00], ["status", "succeeded"], ["type", "Transactionable::Debit"], ["updated_at", Fri, 11 Apr 2014 17:35:09 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", Fri, 11 Apr 2014 17:35:09 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::Transaction"], ["type", "Transactionable::RemoteTransaction"], ["updated_at", Fri, 11 Apr 2014 17:35:09 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP2hgu613pxQrR6LufBofGhW/debits/WD2qO5ACyGfr2zsdw8XUSv6f"]]
+ [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 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", Fri, 11 Apr 2014 17:35:09 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", Fri, 11 Apr 2014 17:35:09 UTC +00:00], ["transaction_id", 1], ["transaction_loggable_id", 1], ["transaction_loggable_type", "User"], ["updated_at", Fri, 11 Apr 2014 17:35:09 UTC +00:00]]
+ [1m[36m (0.2ms)[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.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", Fri, 11 Apr 2014 17:35:09 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:35:09 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.5ms)[0m [1mINSERT INTO "transactionable_credit_cards" ("created_at", "credit_cardable_id", "credit_cardable_type", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 17:35:09 UTC +00:00], ["credit_cardable_id", 1], ["credit_cardable_type", "User"], ["updated_at", Fri, 11 Apr 2014 17:35:09 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", Fri, 11 Apr 2014 17:35:09 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"], ["type", "Transactionable::RemoteCreditCard"], ["updated_at", Fri, 11 Apr 2014 17:35:09 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.1ms)[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", Fri, 11 Apr 2014 17:35:09 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", 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", Fri, 11 Apr 2014 17:35:09 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "User"], ["synced_at", 2014-04-11 13:35:09 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Fri, 11 Apr 2014 17:35:09 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.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", 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.3ms)[0m INSERT INTO "transactionable_transactions" ("amount", "created_at", "status", "type", "updated_at") VALUES (?, ?, ?, ?, ?) [["amount", #<BigDecimal:101e6ad28,'0.1337E2',18(36)>], ["created_at", Fri, 11 Apr 2014 17:35:10 UTC +00:00], ["status", "succeeded"], ["type", "Transactionable::Debit"], ["updated_at", Fri, 11 Apr 2014 17:35:10 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", Fri, 11 Apr 2014 17:35:10 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::Transaction"], ["type", "Transactionable::RemoteTransaction"], ["updated_at", Fri, 11 Apr 2014 17:35:10 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP2hgu613pxQrR6LufBofGhW/debits/WD2qO5ACyGfr2zsdw8XUSv6f"]]
+ [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 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", Fri, 11 Apr 2014 17:35:10 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.0ms)[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", Fri, 11 Apr 2014 17:35:10 UTC +00:00], ["transaction_id", 1], ["transaction_loggable_id", 1], ["transaction_loggable_type", "User"], ["updated_at", Fri, 11 Apr 2014 17:35:10 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.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", Fri, 11 Apr 2014 17:35:10 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:35:10 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[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", Fri, 11 Apr 2014 17:35:10 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:35:10 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", Fri, 11 Apr 2014 17:35:10 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:35:10 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", Fri, 11 Apr 2014 17:35:10 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "User"], ["synced_at", 2014-04-11 13:35:10 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Fri, 11 Apr 2014 17:35:10 UTC +00:00], ["uri", "/v1/customers/CU3DIXq7UemATmqKcGWRGaqs"]]
+ [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[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", Fri, 11 Apr 2014 17:35:10 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:35:10 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", Fri, 11 Apr 2014 17:35:10 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:35:10 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", Fri, 11 Apr 2014 17:35:10 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "User"], ["synced_at", 2014-04-11 13:35:10 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Fri, 11 Apr 2014 17:35:10 UTC +00:00], ["uri", "/v1/customers/CU3DIXq7UemATmqKcGWRGaqs"]]
+ [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[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", Fri, 11 Apr 2014 17:35:10 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:35:10 UTC +00:00]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.8ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 11 Apr 2014 17:35:10 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:35:10 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", Fri, 11 Apr 2014 17:35:10 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "User"], ["synced_at", 2014-04-11 13:35:10 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Fri, 11 Apr 2014 17:35:10 UTC +00:00], ["uri", "/v1/customers/CU3jmsm9nnkhJmPp5YKJE5SK"]]
+ [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[35m (0.9ms)[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", Fri, 11 Apr 2014 17:35:11 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:35:11 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", Fri, 11 Apr 2014 17:35:11 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:35:11 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", Fri, 11 Apr 2014 17:35:11 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "User"], ["synced_at", 2014-04-11 13:35:11 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Fri, 11 Apr 2014 17:35:11 UTC +00:00], ["uri", "/v1/customers/CU3jmsm9nnkhJmPp5YKJE5SK"]]
+ [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[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 (4.6ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 11 Apr 2014 17:35:11 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:35:11 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.8ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 11 Apr 2014 17:35:11 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:35:11 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", Fri, 11 Apr 2014 17:35:11 UTC +00:00], ["credit_cardable_id", 2], ["credit_cardable_type", "User"], ["updated_at", Fri, 11 Apr 2014 17:35:11 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", Fri, 11 Apr 2014 17:35:11 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"], ["type", "Transactionable::RemoteCreditCard"], ["updated_at", Fri, 11 Apr 2014 17:35:11 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", Fri, 11 Apr 2014 17:35:11 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.3ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "synced_at", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 17:35:11 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "User"], ["synced_at", 2014-04-11 13:35:11 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Fri, 11 Apr 2014 17:35:11 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.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", 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.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", Fri, 11 Apr 2014 17:35:12 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:35:12 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", Fri, 11 Apr 2014 17:35:12 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:35:12 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", Fri, 11 Apr 2014 17:35:12 UTC +00:00], ["credit_cardable_id", 2], ["credit_cardable_type", "User"], ["updated_at", Fri, 11 Apr 2014 17:35:12 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", Fri, 11 Apr 2014 17:35:12 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"], ["type", "Transactionable::RemoteCreditCard"], ["updated_at", Fri, 11 Apr 2014 17:35:12 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", Fri, 11 Apr 2014 17:35:12 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mTransactionable::RemoteCustomer Load (5.7ms)[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.3ms)[0m INSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "synced_at", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 17:35:12 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "User"], ["synced_at", 2014-04-11 13:35:12 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Fri, 11 Apr 2014 17:35:12 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.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", Fri, 11 Apr 2014 17:35:12 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:35:12 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.5ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 11 Apr 2014 17:35:12 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:35:12 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", Fri, 11 Apr 2014 17:35:12 UTC +00:00], ["credit_cardable_id", 2], ["credit_cardable_type", "User"], ["updated_at", Fri, 11 Apr 2014 17:35:12 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (6.0ms)[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", Fri, 11 Apr 2014 17:35:12 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"], ["type", "Transactionable::RemoteCreditCard"], ["updated_at", Fri, 11 Apr 2014 17:35:12 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.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", Fri, 11 Apr 2014 17:35:12 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.3ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "synced_at", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 17:35:12 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "User"], ["synced_at", 2014-04-11 13:35:12 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Fri, 11 Apr 2014 17:35:12 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[35m (1.9ms)[0m rollback transaction