spec/dummy/log/test.log in transactionable-0.2.0 vs spec/dummy/log/test.log in transactionable-0.3.0

- old
+ new

@@ -2882,5 +2882,467 @@ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" + ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.2ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (6.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 10 Mar 2014 13:48:14 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:14 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.4ms) INSERT INTO "transactionable_credit_cards" ("created_at", "credit_cardable_id", "credit_cardable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:14 UTC +00:00], ["credit_cardable_id", 1], ["credit_cardable_type", "User"], ["updated_at", Mon, 10 Mar 2014 13:48:14 UTC +00:00]] +  (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", Mon, 10 Mar 2014 13:48:14 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"], ["type", "Transactionable::RemoteCreditCard"], ["updated_at", Mon, 10 Mar 2014 13:48:14 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP2hgu613pxQrR6LufBofGhW/cards/CC2jcda3YthlpkHu2QplhpEu"]] +  (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.4ms) UPDATE "transactionable_credit_cards" SET "description" = ?, "last_four" = ?, "brand" = ?, "expiration_month" = ?, "expiration_year" = ?, "expiration_date" = ?, "updated_at" = ? WHERE "transactionable_credit_cards"."id" = 1 [["description", "Visa (1111)"], ["last_four", 1111], ["brand", "Visa"], ["expiration_month", 12], ["expiration_year", 2016], ["expiration_date", Thu, 01 Dec 2016], ["updated_at", Mon, 10 Mar 2014 13:48:14 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.5ms) INSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "synced_at", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:14 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "User"], ["synced_at", 2014-03-10 09:48:14 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Mon, 10 Mar 2014 13:48:14 UTC +00:00], ["uri", "/v1/customers/CU2kPDAMO1FMAqryJzPaSrvs"]] +  (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.5ms) INSERT INTO "transactionable_transactions" ("amount", "created_at", "status", "type", "updated_at") VALUES (?, ?, ?, ?, ?) [["amount", #<BigDecimal:1013f6c20,'0.1337E2',18(45)>], ["created_at", Mon, 10 Mar 2014 13:48:14 UTC +00:00], ["status", "succeeded"], ["type", "Transactionable::Debit"], ["updated_at", Mon, 10 Mar 2014 13:48:14 UTC +00:00]] +  (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", Mon, 10 Mar 2014 13:48:14 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::Transaction"], ["type", "Transactionable::RemoteTransaction"], ["updated_at", Mon, 10 Mar 2014 13:48:14 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP2hgu613pxQrR6LufBofGhW/debits/WD2qO5ACyGfr2zsdw8XUSv6f"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) UPDATE "transactionable_transactions" SET "transactionable_id" = ?, "transactionable_type" = ?, "updated_at" = ? WHERE "transactionable_transactions"."type" IN ('Transactionable::Debit') AND "transactionable_transactions"."id" = 1 [["transactionable_id", 1], ["transactionable_type", "Transactionable::CreditCard"], ["updated_at", Mon, 10 Mar 2014 13:48:14 UTC +00:00]] +  (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", Mon, 10 Mar 2014 13:48:14 UTC +00:00], ["transaction_id", 1], ["transaction_loggable_id", 1], ["transaction_loggable_type", "User"], ["updated_at", Mon, 10 Mar 2014 13:48:14 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Transactionable::RemoteTransaction Load (0.4ms) 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", Mon, 10 Mar 2014 13:48:15 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:15 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", Mon, 10 Mar 2014 13:48:15 UTC +00:00], ["credit_cardable_id", 1], ["credit_cardable_type", "User"], ["updated_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00]] +  (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", Mon, 10 Mar 2014 13:48:15 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"], ["type", "Transactionable::RemoteCreditCard"], ["updated_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP2hgu613pxQrR6LufBofGhW/cards/CC2jcda3YthlpkHu2QplhpEu"]] +  (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", Mon, 10 Mar 2014 13:48:15 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", Mon, 10 Mar 2014 13:48:15 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "User"], ["synced_at", 2014-03-10 09:48:15 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00], ["uri", "/v1/customers/CU2kPDAMO1FMAqryJzPaSrvs"]] +  (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.4ms) INSERT INTO "transactionable_transactions" ("amount", "created_at", "status", "type", "updated_at") VALUES (?, ?, ?, ?, ?) [["amount", #<BigDecimal:1015fff30,'0.1337E2',18(45)>], ["created_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00], ["status", "succeeded"], ["type", "Transactionable::Debit"], ["updated_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00]] +  (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", Mon, 10 Mar 2014 13:48:15 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::Transaction"], ["type", "Transactionable::RemoteTransaction"], ["updated_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP2hgu613pxQrR6LufBofGhW/debits/WD2qO5ACyGfr2zsdw8XUSv6f"]] +  (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", Mon, 10 Mar 2014 13:48: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.2ms) INSERT INTO "transactionable_transaction_logs" ("created_at", "transaction_id", "transaction_loggable_id", "transaction_loggable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00], ["transaction_id", 1], ["transaction_loggable_id", 1], ["transaction_loggable_type", "User"], ["updated_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00]] +  (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.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", Mon, 10 Mar 2014 13:48:15 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.9ms) INSERT INTO "transactionable_credit_cards" ("created_at", "credit_cardable_id", "credit_cardable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00], ["credit_cardable_id", 1], ["credit_cardable_type", "User"], ["updated_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00]] +  (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", Mon, 10 Mar 2014 13:48:15 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"], ["type", "Transactionable::RemoteCreditCard"], ["updated_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP2hgu613pxQrR6LufBofGhW/cards/CC2jcda3YthlpkHu2QplhpEu"]] +  (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", Mon, 10 Mar 2014 13:48:15 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", Mon, 10 Mar 2014 13:48:15 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "User"], ["synced_at", 2014-03-10 09:48:15 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00], ["uri", "/v1/customers/CU2kPDAMO1FMAqryJzPaSrvs"]] +  (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.4ms) INSERT INTO "transactionable_transactions" ("amount", "created_at", "status", "type", "updated_at") VALUES (?, ?, ?, ?, ?) [["amount", #<BigDecimal:1014dcdd8,'0.1337E2',18(45)>], ["created_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00], ["status", "succeeded"], ["type", "Transactionable::Debit"], ["updated_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00]] +  (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", Mon, 10 Mar 2014 13:48:16 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::Transaction"], ["type", "Transactionable::RemoteTransaction"], ["updated_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP2hgu613pxQrR6LufBofGhW/debits/WD2qO5ACyGfr2zsdw8XUSv6f"]] +  (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", Mon, 10 Mar 2014 13:48:16 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", Mon, 10 Mar 2014 13:48:16 UTC +00:00], ["transaction_id", 1], ["transaction_loggable_id", 1], ["transaction_loggable_type", "User"], ["updated_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00]] +  (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.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:16 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", Mon, 10 Mar 2014 13:48:16 UTC +00:00], ["credit_cardable_id", 1], ["credit_cardable_type", "User"], ["updated_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00]] +  (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", Mon, 10 Mar 2014 13:48:16 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"], ["type", "Transactionable::RemoteCreditCard"], ["updated_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP2hgu613pxQrR6LufBofGhW/cards/CC2jcda3YthlpkHu2QplhpEu"]] +  (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", Mon, 10 Mar 2014 13:48:16 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", Mon, 10 Mar 2014 13:48:16 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "User"], ["synced_at", 2014-03-10 09:48:16 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00], ["uri", "/v1/customers/CU2kPDAMO1FMAqryJzPaSrvs"]] +  (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:10130e768,'0.1337E2',18(45)>], ["created_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00], ["status", "succeeded"], ["type", "Transactionable::Debit"], ["updated_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00]] +  (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", Mon, 10 Mar 2014 13:48:16 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::Transaction"], ["type", "Transactionable::RemoteTransaction"], ["updated_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP2hgu613pxQrR6LufBofGhW/debits/WD2qO5ACyGfr2zsdw8XUSv6f"]] +  (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", Mon, 10 Mar 2014 13:48:16 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", Mon, 10 Mar 2014 13:48:16 UTC +00:00], ["transaction_id", 1], ["transaction_loggable_id", 1], ["transaction_loggable_type", "User"], ["updated_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00]] +  (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" = ? [["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", Mon, 10 Mar 2014 13:48:17 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:17 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", Mon, 10 Mar 2014 13:48:17 UTC +00:00], ["credit_cardable_id", 1], ["credit_cardable_type", "User"], ["updated_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00]] +  (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", Mon, 10 Mar 2014 13:48:17 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"], ["type", "Transactionable::RemoteCreditCard"], ["updated_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP2hgu613pxQrR6LufBofGhW/cards/CC2jcda3YthlpkHu2QplhpEu"]] +  (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", Mon, 10 Mar 2014 13:48: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", 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", Mon, 10 Mar 2014 13:48:17 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "User"], ["synced_at", 2014-03-10 09:48:17 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00], ["uri", "/v1/customers/CU2kPDAMO1FMAqryJzPaSrvs"]] +  (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.4ms) INSERT INTO "transactionable_transactions" ("amount", "created_at", "status", "type", "updated_at") VALUES (?, ?, ?, ?, ?) [["amount", #<BigDecimal:103f5c770,'0.1337E2',18(45)>], ["created_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00], ["status", "succeeded"], ["type", "Transactionable::Debit"], ["updated_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00]] +  (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", Mon, 10 Mar 2014 13:48:17 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::Transaction"], ["type", "Transactionable::RemoteTransaction"], ["updated_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP2hgu613pxQrR6LufBofGhW/debits/WD2qO5ACyGfr2zsdw8XUSv6f"]] +  (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", Mon, 10 Mar 2014 13:48:17 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", Mon, 10 Mar 2014 13:48:17 UTC +00:00], ["transaction_id", 1], ["transaction_loggable_id", 1], ["transaction_loggable_type", "User"], ["updated_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00]] +  (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::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.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00]] +  (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", Mon, 10 Mar 2014 13:48:17 UTC +00:00], ["credit_cardable_id", 1], ["credit_cardable_type", "User"], ["updated_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00]] +  (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", Mon, 10 Mar 2014 13:48:17 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"], ["type", "Transactionable::RemoteCreditCard"], ["updated_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP2hgu613pxQrR6LufBofGhW/cards/CC2jcda3YthlpkHu2QplhpEu"]] +  (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", Mon, 10 Mar 2014 13:48: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", 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", Mon, 10 Mar 2014 13:48:18 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "User"], ["synced_at", 2014-03-10 09:48:18 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00], ["uri", "/v1/customers/CU2kPDAMO1FMAqryJzPaSrvs"]] +  (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.4ms) INSERT INTO "transactionable_transactions" ("amount", "created_at", "status", "type", "updated_at") VALUES (?, ?, ?, ?, ?) [["amount", #<BigDecimal:105873880,'0.1337E2',18(45)>], ["created_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00], ["status", "succeeded"], ["type", "Transactionable::Debit"], ["updated_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00]] +  (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", Mon, 10 Mar 2014 13:48:18 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::Transaction"], ["type", "Transactionable::RemoteTransaction"], ["updated_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP2hgu613pxQrR6LufBofGhW/debits/WD2qO5ACyGfr2zsdw8XUSv6f"]] +  (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", Mon, 10 Mar 2014 13:48:18 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", Mon, 10 Mar 2014 13:48:18 UTC +00:00], ["transaction_id", 1], ["transaction_loggable_id", 1], ["transaction_loggable_type", "User"], ["updated_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00]] +  (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.1ms) 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", Mon, 10 Mar 2014 13:48:18 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:18 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", Mon, 10 Mar 2014 13:48:18 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48: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", Mon, 10 Mar 2014 13:48:18 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "transactionable_credit_cards" ("created_at", "credit_cardable_id", "credit_cardable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00], ["credit_cardable_id", 2], ["credit_cardable_type", "User"], ["updated_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00]] +  (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", Mon, 10 Mar 2014 13:48:18 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"], ["type", "Transactionable::RemoteCreditCard"], ["updated_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP4BaRyFJYl3py1q3xsf1IVQ/cards/CC4DiEesR18Tr2fPHz5uHbEA"]] +  (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", Mon, 10 Mar 2014 13:48: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", Mon, 10 Mar 2014 13:48:18 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "User"], ["synced_at", 2014-03-10 09:48:18 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00], ["uri", "/v1/customers/CU4EPqzr7YWAegGwGTBNZa76"]] +  (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"]] +  (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", Mon, 10 Mar 2014 13:48:19 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:19 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", Mon, 10 Mar 2014 13:48:19 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:19 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", Mon, 10 Mar 2014 13:48:19 UTC +00:00], ["credit_cardable_id", 2], ["credit_cardable_type", "User"], ["updated_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00]] +  (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", Mon, 10 Mar 2014 13:48:19 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"], ["type", "Transactionable::RemoteCreditCard"], ["updated_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP4BaRyFJYl3py1q3xsf1IVQ/cards/CC4DiEesR18Tr2fPHz5uHbEA"]] +  (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", Mon, 10 Mar 2014 13:48:19 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", Mon, 10 Mar 2014 13:48:19 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "User"], ["synced_at", 2014-03-10 09:48:19 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00], ["uri", "/v1/customers/CU4EPqzr7YWAegGwGTBNZa76"]] +  (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.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", Mon, 10 Mar 2014 13:48:19 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:19 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", Mon, 10 Mar 2014 13:48:19 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:19 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", Mon, 10 Mar 2014 13:48:19 UTC +00:00], ["credit_cardable_id", 2], ["credit_cardable_type", "User"], ["updated_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00]] +  (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", Mon, 10 Mar 2014 13:48:19 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"], ["type", "Transactionable::RemoteCreditCard"], ["updated_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP4BaRyFJYl3py1q3xsf1IVQ/cards/CC4DiEesR18Tr2fPHz5uHbEA"]] +  (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", Mon, 10 Mar 2014 13:48:19 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", Mon, 10 Mar 2014 13:48:19 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "User"], ["synced_at", 2014-03-10 09:48:19 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00], ["uri", "/v1/customers/CU4EPqzr7YWAegGwGTBNZa76"]] +  (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", Mon, 10 Mar 2014 13:48:20 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:20 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", Mon, 10 Mar 2014 13:48:20 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:20 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", Mon, 10 Mar 2014 13:48:20 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "User"], ["synced_at", 2014-03-10 09:48:20 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Mon, 10 Mar 2014 13:48:20 UTC +00:00], ["uri", "/v1/customers/CU3jmsm9nnkhJmPp5YKJE5SK"]] +  (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", Mon, 10 Mar 2014 13:48:20 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:20 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", Mon, 10 Mar 2014 13:48:20 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:20 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", Mon, 10 Mar 2014 13:48:20 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "User"], ["synced_at", 2014-03-10 09:48:20 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Mon, 10 Mar 2014 13:48:20 UTC +00:00], ["uri", "/v1/customers/CU3jmsm9nnkhJmPp5YKJE5SK"]] +  (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", Mon, 10 Mar 2014 13:48:20 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:20 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", Mon, 10 Mar 2014 13:48:20 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:20 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", Mon, 10 Mar 2014 13:48:20 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "User"], ["synced_at", 2014-03-10 09:48:20 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Mon, 10 Mar 2014 13:48:20 UTC +00:00], ["uri", "/v1/customers/CU3DIXq7UemATmqKcGWRGaqs"]] +  (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.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"]] +  (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", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:21 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", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:21 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", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "User"], ["synced_at", 2014-03-10 09:48:21 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["uri", "/v1/customers/CU3DIXq7UemATmqKcGWRGaqs"]] +  (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.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00]] +  (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", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:21 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", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:21 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", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) 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", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::BankAccount"], ["type", "Transactionable::RemoteBankAccount"], ["updated_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["uri", "/v1/bank_accounts/BA4VaKDWeShJgL5JIEMhjGjw"]] +  (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", Mon, 10 Mar 2014 13:48:21 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.4ms) INSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "synced_at", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "User"], ["synced_at", 2014-03-10 09:48:21 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["uri", "/v1/customers/CU4ZCytqblNrwcEJ7PvNRQIL"]] +  (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.4ms) 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.3ms) 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"]] +  (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", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:21 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", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:21 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", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:21 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", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::BankAccount"], ["type", "Transactionable::RemoteBankAccount"], ["updated_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["uri", "/v1/bank_accounts/BA4VaKDWeShJgL5JIEMhjGjw"]] +  (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", Mon, 10 Mar 2014 13:48:21 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.5ms) INSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "synced_at", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:22 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "User"], ["synced_at", 2014-03-10 09:48:22 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Mon, 10 Mar 2014 13:48:22 UTC +00:00], ["uri", "/v1/customers/CU4ZCytqblNrwcEJ7PvNRQIL"]] +  (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::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"]] +  (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", Mon, 10 Mar 2014 13:48:22 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:22 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", Mon, 10 Mar 2014 13:48:22 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:22 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", Mon, 10 Mar 2014 13:48:22 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:22 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", Mon, 10 Mar 2014 13:48:22 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::BankAccount"], ["type", "Transactionable::RemoteBankAccount"], ["updated_at", Mon, 10 Mar 2014 13:48:22 UTC +00:00], ["uri", "/v1/bank_accounts/BA4VaKDWeShJgL5JIEMhjGjw"]] +  (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", Mon, 10 Mar 2014 13:48:22 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", Mon, 10 Mar 2014 13:48:22 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "User"], ["synced_at", 2014-03-10 09:48:22 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Mon, 10 Mar 2014 13:48:22 UTC +00:00], ["uri", "/v1/customers/CU4ZCytqblNrwcEJ7PvNRQIL"]] +  (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.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