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 @@ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Transactionable::RemoteCustomer Load (0.2ms) 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"]] Transactionable::BankAccount Load (0.2ms) 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"]] Transactionable::BankAccount Load (0.2ms) 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"]]  (2.0ms) rollback transaction + ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (5.9ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.8ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.1ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (1.9ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "transactionable_credit_cards" ("created_at", "credit_cardable_id", "credit_cardable_type", "updated_at") VALUES (?, ?, ?, ?) [["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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::CreditCard Load (0.1ms) SELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."id" = ? LIMIT 1 [["id", 1]] + Transactionable::RemoteCreditCard Load (0.3ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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:11 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::RemoteCustomer Load (0.3ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) 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: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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] + Transactionable::RemoteCustomer Load (0.2ms) 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"]] + Transactionable::CreditCard Load (0.3ms) 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"]] + Transactionable::RemoteCreditCard Load (0.2ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (3.3ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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::Transaction"], ["type", "Transactionable::RemoteTransaction"], ["updated_at", Fri, 11 Apr 2014 17:33:12 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP2hgu613pxQrR6LufBofGhW/debits/WD2qO5ACyGfr2zsdw8XUSv6f"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::Transaction Load (0.3ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::RemoteTransaction Load (0.3ms) 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"]] +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "transactionable_credit_cards" ("created_at", "credit_cardable_id", "credit_cardable_type", "updated_at") VALUES (?, ?, ?, ?) [["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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::CreditCard Load (0.1ms) SELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."id" = ? LIMIT 1 [["id", 1]] + Transactionable::RemoteCreditCard Load (0.2ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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:12 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::RemoteCustomer Load (0.2ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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: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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] + Transactionable::RemoteCustomer Load (0.2ms) 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"]] + Transactionable::CreditCard Load (0.1ms) 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"]] + Transactionable::RemoteCreditCard Load (0.1ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::Transaction Load (0.1ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::RemoteTransaction Load (0.1ms) 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"]] + Transactionable::Debit Load (0.3ms) 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"]] +  (2.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::CreditCard Load (0.1ms) SELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."id" = ? LIMIT 1 [["id", 1]] + Transactionable::RemoteCreditCard Load (0.2ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::RemoteCustomer Load (0.1ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] + Transactionable::RemoteCustomer Load (0.2ms) 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"]] + Transactionable::CreditCard Load (0.1ms) 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"]] + Transactionable::RemoteCreditCard Load (0.2ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "transactionable_transactions" ("amount", "created_at", "status", "type", "updated_at") VALUES (?, ?, ?, ?, ?) [["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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::Transaction Load (0.1ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::RemoteTransaction Load (0.2ms) 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"]] + Transactionable::Transaction Exists (0.2ms) 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"]] +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::CreditCard Load (0.1ms) SELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."id" = ? LIMIT 1 [["id", 1]] + Transactionable::RemoteCreditCard Load (0.3ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::RemoteCustomer Load (0.1ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] + Transactionable::RemoteCustomer Load (0.2ms) 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"]] + Transactionable::CreditCard Load (0.2ms) 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"]] + Transactionable::RemoteCreditCard Load (0.2ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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: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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::Transaction Load (0.1ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::RemoteTransaction Load (0.2ms) 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"]] + Transactionable::Debit Load (0.4ms) 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"]] +  (2.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 11 Apr 2014 17:33:14 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:33:14 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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: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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::CreditCard Load (0.1ms) SELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."id" = ? LIMIT 1 [["id", 1]] + Transactionable::RemoteCreditCard Load (0.2ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::RemoteCustomer Load (0.2ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] + Transactionable::RemoteCustomer Load (0.1ms) 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"]] + Transactionable::CreditCard Load (0.1ms) 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"]] + Transactionable::RemoteCreditCard Load (0.2ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "transactionable_transactions" ("amount", "created_at", "status", "type", "updated_at") VALUES (?, ?, ?, ?, ?) [["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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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:15 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::Transaction Load (0.1ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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: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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::RemoteTransaction Load (0.1ms) 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"]] +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 11 Apr 2014 17:33:15 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:33:15 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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::CreditCard"], ["type", "Transactionable::RemoteCreditCard"], ["updated_at", Fri, 11 Apr 2014 17:33:15 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP2hgu613pxQrR6LufBofGhW/cards/CC2jcda3YthlpkHu2QplhpEu"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::CreditCard Load (0.1ms) SELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."id" = ? LIMIT 1 [["id", 1]] + Transactionable::RemoteCreditCard Load (0.2ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::RemoteCustomer Load (0.2ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] + Transactionable::RemoteCustomer Load (0.2ms) 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"]] + Transactionable::CreditCard Load (0.1ms) 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"]] + Transactionable::RemoteCreditCard Load (0.2ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "transactionable_transactions" ("amount", "created_at", "status", "type", "updated_at") VALUES (?, ?, ?, ?, ?) [["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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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:15 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::Transaction Load (0.1ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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: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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::RemoteTransaction Load (0.1ms) 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"]] +  (2.3ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 11 Apr 2014 17:33:15 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:33:15 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::RemoteCustomer Load (0.1ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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: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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] + Transactionable::RemoteCustomer Load (0.2ms) 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"]] +  (2.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.7ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::RemoteCustomer Load (0.1ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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: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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] + Transactionable::RemoteCustomer Load (0.2ms) 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"]] +  (2.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::RemoteCustomer Load (0.1ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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: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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] + Transactionable::RemoteCustomer Load (0.2ms) 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"]] +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::RemoteCustomer Load (0.1ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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/CU3jmsm9nnkhJmPp5YKJE5SK"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] + Transactionable::RemoteCustomer Load (0.2ms) 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"]] +  (2.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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: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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::CreditCard Load (0.1ms) SELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."id" = ? LIMIT 1 [["id", 1]] + Transactionable::RemoteCreditCard Load (0.4ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::RemoteCustomer Load (0.1ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] + Transactionable::RemoteCustomer Load (0.2ms) 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"]] + Transactionable::CreditCard Load (0.1ms) 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"]] + Transactionable::CreditCard Load (0.2ms) 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"]] +  (2.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::CreditCard Load (0.1ms) SELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."id" = ? LIMIT 1 [["id", 1]] + Transactionable::RemoteCreditCard Load (0.2ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::RemoteCustomer Load (0.2ms) 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"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] + Transactionable::RemoteCustomer Load (0.2ms) 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"]] + Transactionable::CreditCard Load (0.1ms) 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"]] + Transactionable::RemoteCreditCard Load (0.2ms) 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"]] +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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]] +  (5.6ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::CreditCard Load (0.1ms) SELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."id" = ? LIMIT 1 [["id", 1]] + Transactionable::RemoteCreditCard Load (0.2ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::RemoteCustomer Load (0.1ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] + Transactionable::RemoteCustomer Load (0.3ms) 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"]] + Transactionable::CreditCard Load (0.1ms) 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"]] +  (1.9ms) rollback transaction + ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (4.9ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (1.5ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::BankAccount Load (0.2ms) SELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."id" = ? LIMIT 1 [["id", 1]] + Transactionable::RemoteBankAccount Load (0.3ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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:04 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::RemoteCustomer Load (0.3ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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: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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] + Transactionable::RemoteCustomer Load (0.2ms) 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"]] + Transactionable::BankAccount Load (0.2ms) 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"]] + Transactionable::BankAccount Load (0.1ms) 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"]] +  (2.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::BankAccount Load (0.1ms) SELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."id" = ? LIMIT 1 [["id", 1]] + Transactionable::RemoteBankAccount Load (0.2ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::RemoteCustomer Load (0.1ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] + Transactionable::RemoteCustomer Load (0.2ms) 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"]] + Transactionable::BankAccount Load (0.1ms) 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"]] + Transactionable::RemoteBankAccount Load (0.2ms) 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"]] +  (1.8ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.8ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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:05 UTC +00:00], ["updated_at", Fri, 11 Apr 2014 17:35:05 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::BankAccount Load (0.1ms) SELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."id" = ? LIMIT 1 [["id", 1]] + Transactionable::RemoteBankAccount Load (0.2ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::RemoteCustomer Load (0.1ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] + Transactionable::RemoteCustomer Load (0.2ms) 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"]] + Transactionable::BankAccount Load (0.1ms) 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"]] +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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::CreditCard"], ["type", "Transactionable::RemoteCreditCard"], ["updated_at", Fri, 11 Apr 2014 17:35:05 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP2hgu613pxQrR6LufBofGhW/cards/CC2jcda3YthlpkHu2QplhpEu"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::CreditCard Load (0.2ms) SELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."id" = ? LIMIT 1 [["id", 1]] + Transactionable::RemoteCreditCard Load (0.3ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::RemoteCustomer Load (0.1ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] + Transactionable::RemoteCustomer Load (0.2ms) 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"]] + Transactionable::CreditCard Load (0.3ms) 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"]] + Transactionable::RemoteCreditCard Load (0.2ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "transactionable_transactions" ("amount", "created_at", "status", "type", "updated_at") VALUES (?, ?, ?, ?, ?) [["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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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:06 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::Transaction Load (0.2ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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: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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::RemoteTransaction Load (0.3ms) 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"]] + Transactionable::Debit Load (0.3ms) 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"]] +  (2.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "transactionable_credit_cards" ("created_at", "credit_cardable_id", "credit_cardable_type", "updated_at") VALUES (?, ?, ?, ?) [["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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::CreditCard Load (0.1ms) SELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."id" = ? LIMIT 1 [["id", 1]] + Transactionable::RemoteCreditCard Load (0.2ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::RemoteCustomer Load (0.1ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] + Transactionable::RemoteCustomer Load (0.2ms) 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"]] + Transactionable::CreditCard Load (0.1ms) 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"]] + Transactionable::RemoteCreditCard Load (0.2ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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::Transaction"], ["type", "Transactionable::RemoteTransaction"], ["updated_at", Fri, 11 Apr 2014 17:35:07 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP2hgu613pxQrR6LufBofGhW/debits/WD2qO5ACyGfr2zsdw8XUSv6f"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::Transaction Load (0.1ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::RemoteTransaction Load (0.1ms) 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"]] +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "transactionable_credit_cards" ("created_at", "credit_cardable_id", "credit_cardable_type", "updated_at") VALUES (?, ?, ?, ?) [["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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::CreditCard Load (0.1ms) SELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."id" = ? LIMIT 1 [["id", 1]] + Transactionable::RemoteCreditCard Load (0.2ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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:07 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::RemoteCustomer Load (0.2ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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: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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] + Transactionable::RemoteCustomer Load (0.2ms) 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"]] + Transactionable::CreditCard Load (0.1ms) 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"]] + Transactionable::RemoteCreditCard Load (0.2ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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::Transaction"], ["type", "Transactionable::RemoteTransaction"], ["updated_at", Fri, 11 Apr 2014 17:35:07 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP2hgu613pxQrR6LufBofGhW/debits/WD2qO5ACyGfr2zsdw8XUSv6f"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::Transaction Load (0.1ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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]] +  (5.7ms) RELEASE SAVEPOINT active_record_1 + Transactionable::RemoteTransaction Load (0.2ms) 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"]] + Transactionable::Transaction Exists (0.2ms) 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"]] +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::CreditCard Load (0.1ms) SELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."id" = ? LIMIT 1 [["id", 1]] + Transactionable::RemoteCreditCard Load (0.2ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::RemoteCustomer Load (0.2ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] + Transactionable::RemoteCustomer Load (0.2ms) 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"]] + Transactionable::CreditCard Load (0.1ms) 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"]] + Transactionable::RemoteCreditCard Load (0.2ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "transactionable_transactions" ("amount", "created_at", "status", "type", "updated_at") VALUES (?, ?, ?, ?, ?) [["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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (5.8ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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:08 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::Transaction Load (0.1ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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: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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::RemoteTransaction Load (0.1ms) 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"]] + Transactionable::Debit Load (0.3ms) 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"]] +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::CreditCard Load (0.1ms) SELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."id" = ? LIMIT 1 [["id", 1]] + Transactionable::RemoteCreditCard Load (0.2ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::RemoteCustomer Load (0.1ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] + Transactionable::RemoteCustomer Load (0.2ms) 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"]] + Transactionable::CreditCard Load (0.1ms) 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"]] + Transactionable::RemoteCreditCard Load (0.2ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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::Transaction"], ["type", "Transactionable::RemoteTransaction"], ["updated_at", Fri, 11 Apr 2014 17:35:09 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP2hgu613pxQrR6LufBofGhW/debits/WD2qO5ACyGfr2zsdw8XUSv6f"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::Transaction Load (0.1ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Transactionable::RemoteTransaction Load (0.1ms) 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"]] +  (2.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "transactionable_credit_cards" ("created_at", "credit_cardable_id", "credit_cardable_type", "updated_at") VALUES (?, ?, ?, ?) [["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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::CreditCard Load (0.1ms) SELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."id" = ? LIMIT 1 [["id", 1]] + Transactionable::RemoteCreditCard Load (0.1ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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:09 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::RemoteCustomer Load (0.2ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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: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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] + Transactionable::RemoteCustomer Load (0.2ms) 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"]] + Transactionable::CreditCard Load (0.1ms) 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"]] + Transactionable::RemoteCreditCard Load (0.2ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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: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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::Transaction Load (0.1ms) 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"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::RemoteTransaction Load (0.1ms) 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"]] +  (2.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::RemoteCustomer Load (0.1ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] + Transactionable::RemoteCustomer Load (0.2ms) 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"]] +  (2.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::RemoteCustomer Load (0.1ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] + Transactionable::RemoteCustomer Load (0.2ms) 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"]] +  (2.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.8ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::RemoteCustomer Load (0.1ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] + Transactionable::RemoteCustomer Load (0.2ms) 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"]] +  (0.9ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::RemoteCustomer Load (0.1ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] + Transactionable::RemoteCustomer Load (0.2ms) 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"]] +  (2.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (4.6ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.8ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "transactionable_credit_cards" ("created_at", "credit_cardable_id", "credit_cardable_type", "updated_at") VALUES (?, ?, ?, ?) [["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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::CreditCard Load (0.1ms) SELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."id" = ? LIMIT 1 [["id", 1]] + Transactionable::RemoteCreditCard Load (0.2ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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:11 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::RemoteCustomer Load (0.2ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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/CU4EPqzr7YWAegGwGTBNZa76"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] + Transactionable::RemoteCustomer Load (0.2ms) 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"]] + Transactionable::CreditCard Load (0.2ms) 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"]] + Transactionable::CreditCard Load (0.2ms) 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"]] +  (2.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::CreditCard Load (0.1ms) SELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."id" = ? LIMIT 1 [["id", 1]] + Transactionable::RemoteCreditCard Load (0.2ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::RemoteCustomer Load (5.7ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] + Transactionable::RemoteCustomer Load (0.2ms) 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"]] + Transactionable::CreditCard Load (0.1ms) 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"]] + Transactionable::RemoteCreditCard Load (0.2ms) 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"]] +  (2.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (6.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::CreditCard Load (0.1ms) SELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."id" = ? LIMIT 1 [["id", 1]] + Transactionable::RemoteCreditCard Load (0.2ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::RemoteCustomer Load (0.1ms) 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"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] + Transactionable::RemoteCustomer Load (0.2ms) 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"]] + Transactionable::CreditCard Load (0.1ms) 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"]] +  (1.9ms) rollback transaction