transactionable 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/models/transactionable/transaction.rb +1 -1
- data/app/models/transactionable/transaction_log.rb +6 -0
- data/db/migrate/20140307200039_create_transactionable_transaction_logs.rb +11 -0
- data/db/migrate/20140307200730_remove_transaction_loggable_from_transactionable_transactions.rb +6 -0
- data/lib/transactionable.rb +1 -0
- data/lib/transactionable/acts_as_transactionable.rb +4 -0
- data/lib/transactionable/transaction_loggable.rb +14 -0
- data/lib/transactionable/version.rb +1 -1
- data/spec/dummy/app/models/user.rb +2 -1
- data/spec/dummy/db/schema.rb +10 -4
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +16 -0
- data/spec/dummy/log/test.log +462 -0
- data/spec/factories/transactionable_transaction_logs.rb +6 -0
- data/spec/integration/models/credit_card_spec.rb +2 -0
- data/spec/models/transactionable/transaction_log_spec.rb +7 -0
- metadata +10 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 44dc75df3782fe97be9db721c09ea9570538b4a1
|
|
4
|
+
data.tar.gz: cda95b6ada37abcd237a5dbc04bf1c94f7264749
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0418555767eb9acaafc5454e9576c3a3513ca68f868db7a8d4eaed75aace70cc74b4b23bbc169337713bd41c779d9a7fa0d9a2845dd4f9480cbaf47fe45fe016
|
|
7
|
+
data.tar.gz: 7d8e8f2f02ee1a79d99c7b8831348b7a74628fb372633d24d108749b585cd22cfd376134e8e98b33e3a2f6c8c9d564f345a8967db1923836b4934a6645dfcc31
|
|
@@ -2,7 +2,7 @@ module Transactionable
|
|
|
2
2
|
class Transaction < ActiveRecord::Base
|
|
3
3
|
has_one :remote_transaction, as: :local_entity, dependent: :destroy
|
|
4
4
|
belongs_to :transactionable, polymorphic: true
|
|
5
|
-
|
|
5
|
+
has_many :transaction_logs
|
|
6
6
|
|
|
7
7
|
TRANSACTION_TYPES = [:hold, :credit, :debit, :refund, :reversal]
|
|
8
8
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
class CreateTransactionableTransactionLogs < ActiveRecord::Migration
|
|
2
|
+
def change
|
|
3
|
+
create_table :transactionable_transaction_logs do |t|
|
|
4
|
+
t.integer :transaction_id
|
|
5
|
+
t.integer :transaction_loggable_id
|
|
6
|
+
t.string :transaction_loggable_type
|
|
7
|
+
|
|
8
|
+
t.timestamps
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
data/db/migrate/20140307200730_remove_transaction_loggable_from_transactionable_transactions.rb
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
class RemoveTransactionLoggableFromTransactionableTransactions < ActiveRecord::Migration
|
|
2
|
+
def change
|
|
3
|
+
remove_column :transactionable_transactions, :transaction_loggable_id, :integer
|
|
4
|
+
remove_column :transactionable_transactions, :transaction_loggable_type, :string
|
|
5
|
+
end
|
|
6
|
+
end
|
data/lib/transactionable.rb
CHANGED
|
@@ -2,6 +2,7 @@ require "transactionable/engine"
|
|
|
2
2
|
require "transactionable/balanced_customer"
|
|
3
3
|
require "transactionable/credit_card_transactionable"
|
|
4
4
|
require "transactionable/bank_account_transactionable"
|
|
5
|
+
require "transactionable/transaction_loggable"
|
|
5
6
|
require "transactionable/exceptions"
|
|
6
7
|
require "transactionable/acts_as_transactionable"
|
|
7
8
|
|
|
@@ -10,6 +10,10 @@ module Transactionable
|
|
|
10
10
|
def acts_as_bank_account_transactionable(options = {})
|
|
11
11
|
include Transactionable::BankAccountTransactionable
|
|
12
12
|
end
|
|
13
|
+
|
|
14
|
+
def acts_as_transaction_loggable(options = {})
|
|
15
|
+
include Transactionable::TransactionLoggable
|
|
16
|
+
end
|
|
13
17
|
end
|
|
14
18
|
end
|
|
15
19
|
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
module Transactionable
|
|
2
|
+
module TransactionLoggable
|
|
3
|
+
extend ActiveSupport::Concern
|
|
4
|
+
|
|
5
|
+
included do
|
|
6
|
+
has_many :transaction_logs, as: :transaction_loggable, class_name: 'Transactionable::TransactionLog'
|
|
7
|
+
has_many :transactions, through: :transaction_logs, class_name: 'Transactionable::Transaction'
|
|
8
|
+
|
|
9
|
+
def log_transaction(transaction)
|
|
10
|
+
Transactionable::TransactionLog.create(transaction: transaction, transaction_loggable: self)
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
data/spec/dummy/db/schema.rb
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
#
|
|
12
12
|
# It's strongly recommended that you check this file into your version control system.
|
|
13
13
|
|
|
14
|
-
ActiveRecord::Schema.define(version:
|
|
14
|
+
ActiveRecord::Schema.define(version: 20140307200730) do
|
|
15
15
|
|
|
16
16
|
create_table "transactionable_bank_accounts", force: true do |t|
|
|
17
17
|
t.integer "bank_accountable_id"
|
|
@@ -52,14 +52,20 @@ ActiveRecord::Schema.define(version: 20140108213120) do
|
|
|
52
52
|
t.datetime "updated_at"
|
|
53
53
|
end
|
|
54
54
|
|
|
55
|
+
create_table "transactionable_transaction_logs", force: true do |t|
|
|
56
|
+
t.integer "transaction_id"
|
|
57
|
+
t.integer "transaction_loggable_id"
|
|
58
|
+
t.string "transaction_loggable_type"
|
|
59
|
+
t.datetime "created_at"
|
|
60
|
+
t.datetime "updated_at"
|
|
61
|
+
end
|
|
62
|
+
|
|
55
63
|
create_table "transactionable_transactions", force: true do |t|
|
|
56
64
|
t.integer "transactionable_id"
|
|
57
65
|
t.string "transactionable_type"
|
|
58
|
-
t.integer "transaction_loggable_id"
|
|
59
|
-
t.string "transaction_loggable_type"
|
|
60
66
|
t.integer "credit_id"
|
|
61
67
|
t.integer "debit_id"
|
|
62
|
-
t.decimal "amount",
|
|
68
|
+
t.decimal "amount", precision: 8, scale: 2
|
|
63
69
|
t.string "status"
|
|
64
70
|
t.string "description"
|
|
65
71
|
t.string "type"
|
data/spec/dummy/db/test.sqlite3
CHANGED
|
Binary file
|
|
@@ -469,3 +469,19 @@ Migrating to CreateTransactionableBankAccounts (20140108213120)
|
|
|
469
469
|
[1m[36m (1.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140108145608')[0m
|
|
470
470
|
[1m[35m (1.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140108182203')
|
|
471
471
|
[1m[36m (1.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140108190511')[0m
|
|
472
|
+
[1m[36m (1.4ms)[0m [1mCREATE TABLE "transactionable_bank_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bank_accountable_id" integer, "bank_accountable_type" varchar(255), "account_number" varchar(255), "name" varchar(255), "bank_name" varchar(255), "description" varchar(255), "account_type" varchar(255), "can_debit" boolean, "verified" boolean, "created_at" datetime, "updated_at" datetime) [0m
|
|
473
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "transactionable_credit_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "credit_cardable_id" integer, "credit_cardable_type" varchar(255), "name" varchar(255), "description" varchar(255), "last_four" integer, "brand" varchar(255), "expiration_month" integer, "expiration_year" integer, "expiration_date" date, "created_at" datetime, "updated_at" datetime)
|
|
474
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "transactionable_remote_entities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uri" varchar(255), "service_name" varchar(255), "local_entity_id" integer, "local_entity_type" varchar(255), "synced_at" time, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
|
475
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "transactionable_transaction_logs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "transaction_id" integer, "transaction_loggable_id" integer, "transaction_loggable_type" varchar(255), "created_at" datetime, "updated_at" datetime)
|
|
476
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "transactionable_transactions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "transactionable_id" integer, "transactionable_type" varchar(255), "credit_id" integer, "debit_id" integer, "amount" decimal(8,2), "status" varchar(255), "description" varchar(255), "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
|
477
|
+
[1m[35m (1.3ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
|
|
478
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
|
479
|
+
[1m[35m (1.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
|
480
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
|
481
|
+
[1m[35m (1.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140307200730')
|
|
482
|
+
[1m[36m (1.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140108162102')[0m
|
|
483
|
+
[1m[35m (1.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140108145608')
|
|
484
|
+
[1m[36m (1.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140108182203')[0m
|
|
485
|
+
[1m[35m (1.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140108190511')
|
|
486
|
+
[1m[36m (1.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140108213120')[0m
|
|
487
|
+
[1m[35m (1.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140307200039')
|
data/spec/dummy/log/test.log
CHANGED
|
@@ -2884,3 +2884,465 @@
|
|
|
2884
2884
|
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
2885
2885
|
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
2886
2886
|
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
2887
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
2888
|
+
[1m[35m (0.2ms)[0m begin transaction
|
|
2889
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2890
|
+
[1m[35mSQL (6.3ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 10 Mar 2014 13:48:14 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:14 UTC +00:00]]
|
|
2891
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2892
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2893
|
+
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO "transactionable_credit_cards" ("created_at", "credit_cardable_id", "credit_cardable_type", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:14 UTC +00:00], ["credit_cardable_id", 1], ["credit_cardable_type", "User"], ["updated_at", Mon, 10 Mar 2014 13:48:14 UTC +00:00]]
|
|
2894
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2895
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2896
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:14 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"], ["type", "Transactionable::RemoteCreditCard"], ["updated_at", Mon, 10 Mar 2014 13:48:14 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP2hgu613pxQrR6LufBofGhW/cards/CC2jcda3YthlpkHu2QplhpEu"]]
|
|
2897
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2898
|
+
[1m[35mTransactionable::CreditCard Load (0.2ms)[0m SELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."id" = ? LIMIT 1 [["id", 1]]
|
|
2899
|
+
[1m[36mTransactionable::RemoteCreditCard Load (0.3ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCreditCard') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"]]
|
|
2900
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2901
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "transactionable_credit_cards" SET "description" = ?, "last_four" = ?, "brand" = ?, "expiration_month" = ?, "expiration_year" = ?, "expiration_date" = ?, "updated_at" = ? WHERE "transactionable_credit_cards"."id" = 1[0m [["description", "Visa (1111)"], ["last_four", 1111], ["brand", "Visa"], ["expiration_month", 12], ["expiration_year", 2016], ["expiration_date", Thu, 01 Dec 2016], ["updated_at", Mon, 10 Mar 2014 13:48:14 UTC +00:00]]
|
|
2902
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2903
|
+
[1m[36mTransactionable::RemoteCustomer Load (0.3ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "User"]]
|
|
2904
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2905
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "synced_at", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:14 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "User"], ["synced_at", 2014-03-10 09:48:14 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Mon, 10 Mar 2014 13:48:14 UTC +00:00], ["uri", "/v1/customers/CU2kPDAMO1FMAqryJzPaSrvs"]]
|
|
2906
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2907
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
|
2908
|
+
[1m[35mTransactionable::RemoteCustomer Load (0.2ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "User"]]
|
|
2909
|
+
[1m[36mTransactionable::CreditCard Load (0.3ms)[0m [1mSELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."credit_cardable_id" = ? AND "transactionable_credit_cards"."credit_cardable_type" = ? ORDER BY "transactionable_credit_cards"."id" ASC LIMIT 1[0m [["credit_cardable_id", 1], ["credit_cardable_type", "User"]]
|
|
2910
|
+
[1m[35mTransactionable::RemoteCreditCard Load (0.2ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCreditCard') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"]]
|
|
2911
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2912
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "transactionable_transactions" ("amount", "created_at", "status", "type", "updated_at") VALUES (?, ?, ?, ?, ?) [["amount", #<BigDecimal:1013f6c20,'0.1337E2',18(45)>], ["created_at", Mon, 10 Mar 2014 13:48:14 UTC +00:00], ["status", "succeeded"], ["type", "Transactionable::Debit"], ["updated_at", Mon, 10 Mar 2014 13:48:14 UTC +00:00]]
|
|
2913
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2914
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2915
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:14 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::Transaction"], ["type", "Transactionable::RemoteTransaction"], ["updated_at", Mon, 10 Mar 2014 13:48:14 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP2hgu613pxQrR6LufBofGhW/debits/WD2qO5ACyGfr2zsdw8XUSv6f"]]
|
|
2916
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2917
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2918
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "transactionable_transactions" SET "transactionable_id" = ?, "transactionable_type" = ?, "updated_at" = ? WHERE "transactionable_transactions"."type" IN ('Transactionable::Debit') AND "transactionable_transactions"."id" = 1 [["transactionable_id", 1], ["transactionable_type", "Transactionable::CreditCard"], ["updated_at", Mon, 10 Mar 2014 13:48:14 UTC +00:00]]
|
|
2919
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2920
|
+
[1m[35mTransactionable::Transaction Load (0.2ms)[0m SELECT "transactionable_transactions".* FROM "transactionable_transactions" WHERE "transactionable_transactions"."transactionable_id" = ? AND "transactionable_transactions"."transactionable_type" = ? ORDER BY "transactionable_transactions"."id" ASC LIMIT 1 [["transactionable_id", 1], ["transactionable_type", "Transactionable::CreditCard"]]
|
|
2921
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2922
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "transactionable_transaction_logs" ("created_at", "transaction_id", "transaction_loggable_id", "transaction_loggable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:14 UTC +00:00], ["transaction_id", 1], ["transaction_loggable_id", 1], ["transaction_loggable_type", "User"], ["updated_at", Mon, 10 Mar 2014 13:48:14 UTC +00:00]]
|
|
2923
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2924
|
+
[1m[35mTransactionable::RemoteTransaction Load (0.4ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteTransaction') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "Transactionable::Transaction"]]
|
|
2925
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
|
2926
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
2927
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2928
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00]]
|
|
2929
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2930
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2931
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "transactionable_credit_cards" ("created_at", "credit_cardable_id", "credit_cardable_type", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00], ["credit_cardable_id", 1], ["credit_cardable_type", "User"], ["updated_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00]]
|
|
2932
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2933
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2934
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"], ["type", "Transactionable::RemoteCreditCard"], ["updated_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP2hgu613pxQrR6LufBofGhW/cards/CC2jcda3YthlpkHu2QplhpEu"]]
|
|
2935
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2936
|
+
[1m[35mTransactionable::CreditCard Load (0.1ms)[0m SELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."id" = ? LIMIT 1 [["id", 1]]
|
|
2937
|
+
[1m[36mTransactionable::RemoteCreditCard Load (0.2ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCreditCard') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"]]
|
|
2938
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2939
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "transactionable_credit_cards" SET "description" = ?, "last_four" = ?, "brand" = ?, "expiration_month" = ?, "expiration_year" = ?, "expiration_date" = ?, "updated_at" = ? WHERE "transactionable_credit_cards"."id" = 1[0m [["description", "Visa (1111)"], ["last_four", 1111], ["brand", "Visa"], ["expiration_month", 12], ["expiration_year", 2016], ["expiration_date", Thu, 01 Dec 2016], ["updated_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00]]
|
|
2940
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2941
|
+
[1m[36mTransactionable::RemoteCustomer Load (0.1ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "User"]]
|
|
2942
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2943
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "synced_at", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "User"], ["synced_at", 2014-03-10 09:48:15 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00], ["uri", "/v1/customers/CU2kPDAMO1FMAqryJzPaSrvs"]]
|
|
2944
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2945
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
|
2946
|
+
[1m[35mTransactionable::RemoteCustomer Load (0.2ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "User"]]
|
|
2947
|
+
[1m[36mTransactionable::CreditCard Load (0.2ms)[0m [1mSELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."credit_cardable_id" = ? AND "transactionable_credit_cards"."credit_cardable_type" = ? ORDER BY "transactionable_credit_cards"."id" ASC LIMIT 1[0m [["credit_cardable_id", 1], ["credit_cardable_type", "User"]]
|
|
2948
|
+
[1m[35mTransactionable::RemoteCreditCard Load (0.2ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCreditCard') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"]]
|
|
2949
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2950
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "transactionable_transactions" ("amount", "created_at", "status", "type", "updated_at") VALUES (?, ?, ?, ?, ?) [["amount", #<BigDecimal:1015fff30,'0.1337E2',18(45)>], ["created_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00], ["status", "succeeded"], ["type", "Transactionable::Debit"], ["updated_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00]]
|
|
2951
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2952
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2953
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::Transaction"], ["type", "Transactionable::RemoteTransaction"], ["updated_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP2hgu613pxQrR6LufBofGhW/debits/WD2qO5ACyGfr2zsdw8XUSv6f"]]
|
|
2954
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2955
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2956
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "transactionable_transactions" SET "transactionable_id" = ?, "transactionable_type" = ?, "updated_at" = ? WHERE "transactionable_transactions"."type" IN ('Transactionable::Debit') AND "transactionable_transactions"."id" = 1 [["transactionable_id", 1], ["transactionable_type", "Transactionable::CreditCard"], ["updated_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00]]
|
|
2957
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2958
|
+
[1m[35mTransactionable::Transaction Load (0.1ms)[0m SELECT "transactionable_transactions".* FROM "transactionable_transactions" WHERE "transactionable_transactions"."transactionable_id" = ? AND "transactionable_transactions"."transactionable_type" = ? ORDER BY "transactionable_transactions"."id" ASC LIMIT 1 [["transactionable_id", 1], ["transactionable_type", "Transactionable::CreditCard"]]
|
|
2959
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2960
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "transactionable_transaction_logs" ("created_at", "transaction_id", "transaction_loggable_id", "transaction_loggable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00], ["transaction_id", 1], ["transaction_loggable_id", 1], ["transaction_loggable_type", "User"], ["updated_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00]]
|
|
2961
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2962
|
+
[1m[35mTransactionable::RemoteTransaction Load (0.1ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteTransaction') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "Transactionable::Transaction"]]
|
|
2963
|
+
[1m[36m (2.1ms)[0m [1mrollback transaction[0m
|
|
2964
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
2965
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2966
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00]]
|
|
2967
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2968
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2969
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "transactionable_credit_cards" ("created_at", "credit_cardable_id", "credit_cardable_type", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00], ["credit_cardable_id", 1], ["credit_cardable_type", "User"], ["updated_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00]]
|
|
2970
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2971
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2972
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"], ["type", "Transactionable::RemoteCreditCard"], ["updated_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP2hgu613pxQrR6LufBofGhW/cards/CC2jcda3YthlpkHu2QplhpEu"]]
|
|
2973
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2974
|
+
[1m[35mTransactionable::CreditCard Load (0.1ms)[0m SELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."id" = ? LIMIT 1 [["id", 1]]
|
|
2975
|
+
[1m[36mTransactionable::RemoteCreditCard Load (0.2ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCreditCard') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"]]
|
|
2976
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2977
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "transactionable_credit_cards" SET "description" = ?, "last_four" = ?, "brand" = ?, "expiration_month" = ?, "expiration_year" = ?, "expiration_date" = ?, "updated_at" = ? WHERE "transactionable_credit_cards"."id" = 1[0m [["description", "Visa (1111)"], ["last_four", 1111], ["brand", "Visa"], ["expiration_month", 12], ["expiration_year", 2016], ["expiration_date", Thu, 01 Dec 2016], ["updated_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00]]
|
|
2978
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2979
|
+
[1m[36mTransactionable::RemoteCustomer Load (0.1ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "User"]]
|
|
2980
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2981
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "synced_at", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "User"], ["synced_at", 2014-03-10 09:48:15 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Mon, 10 Mar 2014 13:48:15 UTC +00:00], ["uri", "/v1/customers/CU2kPDAMO1FMAqryJzPaSrvs"]]
|
|
2982
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2983
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
|
2984
|
+
[1m[35mTransactionable::RemoteCustomer Load (0.2ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "User"]]
|
|
2985
|
+
[1m[36mTransactionable::CreditCard Load (0.2ms)[0m [1mSELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."credit_cardable_id" = ? AND "transactionable_credit_cards"."credit_cardable_type" = ? ORDER BY "transactionable_credit_cards"."id" ASC LIMIT 1[0m [["credit_cardable_id", 1], ["credit_cardable_type", "User"]]
|
|
2986
|
+
[1m[35mTransactionable::RemoteCreditCard Load (0.2ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCreditCard') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"]]
|
|
2987
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2988
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "transactionable_transactions" ("amount", "created_at", "status", "type", "updated_at") VALUES (?, ?, ?, ?, ?) [["amount", #<BigDecimal:1014dcdd8,'0.1337E2',18(45)>], ["created_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00], ["status", "succeeded"], ["type", "Transactionable::Debit"], ["updated_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00]]
|
|
2989
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2990
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
2991
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::Transaction"], ["type", "Transactionable::RemoteTransaction"], ["updated_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP2hgu613pxQrR6LufBofGhW/debits/WD2qO5ACyGfr2zsdw8XUSv6f"]]
|
|
2992
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2993
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2994
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "transactionable_transactions" SET "transactionable_id" = ?, "transactionable_type" = ?, "updated_at" = ? WHERE "transactionable_transactions"."type" IN ('Transactionable::Debit') AND "transactionable_transactions"."id" = 1 [["transactionable_id", 1], ["transactionable_type", "Transactionable::CreditCard"], ["updated_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00]]
|
|
2995
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2996
|
+
[1m[35mTransactionable::Transaction Load (0.1ms)[0m SELECT "transactionable_transactions".* FROM "transactionable_transactions" WHERE "transactionable_transactions"."transactionable_id" = ? AND "transactionable_transactions"."transactionable_type" = ? ORDER BY "transactionable_transactions"."id" ASC LIMIT 1 [["transactionable_id", 1], ["transactionable_type", "Transactionable::CreditCard"]]
|
|
2997
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2998
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "transactionable_transaction_logs" ("created_at", "transaction_id", "transaction_loggable_id", "transaction_loggable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00], ["transaction_id", 1], ["transaction_loggable_id", 1], ["transaction_loggable_type", "User"], ["updated_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00]]
|
|
2999
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3000
|
+
[1m[35mTransactionable::RemoteTransaction Load (0.1ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteTransaction') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "Transactionable::Transaction"]]
|
|
3001
|
+
[1m[36mTransactionable::Debit Load (0.3ms)[0m [1mSELECT "transactionable_transactions".* FROM "transactionable_transactions" WHERE "transactionable_transactions"."type" IN ('Transactionable::Debit') AND "transactionable_transactions"."transactionable_id" = ? AND "transactionable_transactions"."transactionable_type" = ? ORDER BY "transactionable_transactions"."id" ASC LIMIT 1[0m [["transactionable_id", 1], ["transactionable_type", "Transactionable::CreditCard"]]
|
|
3002
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
|
3003
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
3004
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3005
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00]]
|
|
3006
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3007
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3008
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "transactionable_credit_cards" ("created_at", "credit_cardable_id", "credit_cardable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00], ["credit_cardable_id", 1], ["credit_cardable_type", "User"], ["updated_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00]]
|
|
3009
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3010
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3011
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"], ["type", "Transactionable::RemoteCreditCard"], ["updated_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP2hgu613pxQrR6LufBofGhW/cards/CC2jcda3YthlpkHu2QplhpEu"]]
|
|
3012
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3013
|
+
[1m[36mTransactionable::CreditCard Load (0.1ms)[0m [1mSELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."id" = ? LIMIT 1[0m [["id", 1]]
|
|
3014
|
+
[1m[35mTransactionable::RemoteCreditCard Load (0.2ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCreditCard') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"]]
|
|
3015
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3016
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "transactionable_credit_cards" SET "description" = ?, "last_four" = ?, "brand" = ?, "expiration_month" = ?, "expiration_year" = ?, "expiration_date" = ?, "updated_at" = ? WHERE "transactionable_credit_cards"."id" = 1 [["description", "Visa (1111)"], ["last_four", 1111], ["brand", "Visa"], ["expiration_month", 12], ["expiration_year", 2016], ["expiration_date", Thu, 01 Dec 2016], ["updated_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00]]
|
|
3017
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3018
|
+
[1m[35mTransactionable::RemoteCustomer Load (0.2ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "User"]]
|
|
3019
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3020
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "synced_at", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "User"], ["synced_at", 2014-03-10 09:48:16 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00], ["uri", "/v1/customers/CU2kPDAMO1FMAqryJzPaSrvs"]]
|
|
3021
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3022
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
|
3023
|
+
[1m[36mTransactionable::RemoteCustomer Load (0.2ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "User"]]
|
|
3024
|
+
[1m[35mTransactionable::CreditCard Load (0.2ms)[0m SELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."credit_cardable_id" = ? AND "transactionable_credit_cards"."credit_cardable_type" = ? ORDER BY "transactionable_credit_cards"."id" ASC LIMIT 1 [["credit_cardable_id", 1], ["credit_cardable_type", "User"]]
|
|
3025
|
+
[1m[36mTransactionable::RemoteCreditCard Load (0.2ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCreditCard') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"]]
|
|
3026
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3027
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "transactionable_transactions" ("amount", "created_at", "status", "type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["amount", #<BigDecimal:10130e768,'0.1337E2',18(45)>], ["created_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00], ["status", "succeeded"], ["type", "Transactionable::Debit"], ["updated_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00]]
|
|
3028
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3029
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3030
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::Transaction"], ["type", "Transactionable::RemoteTransaction"], ["updated_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP2hgu613pxQrR6LufBofGhW/debits/WD2qO5ACyGfr2zsdw8XUSv6f"]]
|
|
3031
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3032
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3033
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "transactionable_transactions" SET "transactionable_id" = ?, "transactionable_type" = ?, "updated_at" = ? WHERE "transactionable_transactions"."type" IN ('Transactionable::Debit') AND "transactionable_transactions"."id" = 1[0m [["transactionable_id", 1], ["transactionable_type", "Transactionable::CreditCard"], ["updated_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00]]
|
|
3034
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3035
|
+
[1m[36mTransactionable::Transaction Load (0.1ms)[0m [1mSELECT "transactionable_transactions".* FROM "transactionable_transactions" WHERE "transactionable_transactions"."transactionable_id" = ? AND "transactionable_transactions"."transactionable_type" = ? ORDER BY "transactionable_transactions"."id" ASC LIMIT 1[0m [["transactionable_id", 1], ["transactionable_type", "Transactionable::CreditCard"]]
|
|
3036
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3037
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "transactionable_transaction_logs" ("created_at", "transaction_id", "transaction_loggable_id", "transaction_loggable_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00], ["transaction_id", 1], ["transaction_loggable_id", 1], ["transaction_loggable_type", "User"], ["updated_at", Mon, 10 Mar 2014 13:48:16 UTC +00:00]]
|
|
3038
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3039
|
+
[1m[36mTransactionable::RemoteTransaction Load (0.1ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteTransaction') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "Transactionable::Transaction"]]
|
|
3040
|
+
[1m[35mTransactionable::Debit Load (0.3ms)[0m SELECT "transactionable_transactions".* FROM "transactionable_transactions" WHERE "transactionable_transactions"."type" IN ('Transactionable::Debit') AND "transactionable_transactions"."transactionable_id" = ? AND "transactionable_transactions"."transactionable_type" = ? [["transactionable_id", 1], ["transactionable_type", "Transactionable::CreditCard"]]
|
|
3041
|
+
[1m[36m (2.0ms)[0m [1mrollback transaction[0m
|
|
3042
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
3043
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3044
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00]]
|
|
3045
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3046
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3047
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "transactionable_credit_cards" ("created_at", "credit_cardable_id", "credit_cardable_type", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00], ["credit_cardable_id", 1], ["credit_cardable_type", "User"], ["updated_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00]]
|
|
3048
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3049
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3050
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"], ["type", "Transactionable::RemoteCreditCard"], ["updated_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP2hgu613pxQrR6LufBofGhW/cards/CC2jcda3YthlpkHu2QplhpEu"]]
|
|
3051
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3052
|
+
[1m[35mTransactionable::CreditCard Load (0.1ms)[0m SELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."id" = ? LIMIT 1 [["id", 1]]
|
|
3053
|
+
[1m[36mTransactionable::RemoteCreditCard Load (0.2ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCreditCard') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"]]
|
|
3054
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3055
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "transactionable_credit_cards" SET "description" = ?, "last_four" = ?, "brand" = ?, "expiration_month" = ?, "expiration_year" = ?, "expiration_date" = ?, "updated_at" = ? WHERE "transactionable_credit_cards"."id" = 1[0m [["description", "Visa (1111)"], ["last_four", 1111], ["brand", "Visa"], ["expiration_month", 12], ["expiration_year", 2016], ["expiration_date", Thu, 01 Dec 2016], ["updated_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00]]
|
|
3056
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3057
|
+
[1m[36mTransactionable::RemoteCustomer Load (0.1ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "User"]]
|
|
3058
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3059
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "synced_at", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "User"], ["synced_at", 2014-03-10 09:48:17 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00], ["uri", "/v1/customers/CU2kPDAMO1FMAqryJzPaSrvs"]]
|
|
3060
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3061
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
|
3062
|
+
[1m[35mTransactionable::RemoteCustomer Load (0.2ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "User"]]
|
|
3063
|
+
[1m[36mTransactionable::CreditCard Load (0.2ms)[0m [1mSELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."credit_cardable_id" = ? AND "transactionable_credit_cards"."credit_cardable_type" = ? ORDER BY "transactionable_credit_cards"."id" ASC LIMIT 1[0m [["credit_cardable_id", 1], ["credit_cardable_type", "User"]]
|
|
3064
|
+
[1m[35mTransactionable::RemoteCreditCard Load (0.2ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCreditCard') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"]]
|
|
3065
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3066
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "transactionable_transactions" ("amount", "created_at", "status", "type", "updated_at") VALUES (?, ?, ?, ?, ?) [["amount", #<BigDecimal:103f5c770,'0.1337E2',18(45)>], ["created_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00], ["status", "succeeded"], ["type", "Transactionable::Debit"], ["updated_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00]]
|
|
3067
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3068
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
3069
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::Transaction"], ["type", "Transactionable::RemoteTransaction"], ["updated_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP2hgu613pxQrR6LufBofGhW/debits/WD2qO5ACyGfr2zsdw8XUSv6f"]]
|
|
3070
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3071
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3072
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "transactionable_transactions" SET "transactionable_id" = ?, "transactionable_type" = ?, "updated_at" = ? WHERE "transactionable_transactions"."type" IN ('Transactionable::Debit') AND "transactionable_transactions"."id" = 1 [["transactionable_id", 1], ["transactionable_type", "Transactionable::CreditCard"], ["updated_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00]]
|
|
3073
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3074
|
+
[1m[35mTransactionable::Transaction Load (0.1ms)[0m SELECT "transactionable_transactions".* FROM "transactionable_transactions" WHERE "transactionable_transactions"."transactionable_id" = ? AND "transactionable_transactions"."transactionable_type" = ? ORDER BY "transactionable_transactions"."id" ASC LIMIT 1 [["transactionable_id", 1], ["transactionable_type", "Transactionable::CreditCard"]]
|
|
3075
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3076
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "transactionable_transaction_logs" ("created_at", "transaction_id", "transaction_loggable_id", "transaction_loggable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00], ["transaction_id", 1], ["transaction_loggable_id", 1], ["transaction_loggable_type", "User"], ["updated_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00]]
|
|
3077
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3078
|
+
[1m[35mTransactionable::RemoteTransaction Load (0.1ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteTransaction') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "Transactionable::Transaction"]]
|
|
3079
|
+
[1m[36mTransactionable::Transaction Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "transactionable_transactions" INNER JOIN "transactionable_transaction_logs" ON "transactionable_transactions"."id" = "transactionable_transaction_logs"."transaction_id" WHERE "transactionable_transaction_logs"."transaction_loggable_id" = ? AND "transactionable_transaction_logs"."transaction_loggable_type" = ? AND "transactionable_transactions"."id" = 1 LIMIT 1[0m [["transaction_loggable_id", 1], ["transaction_loggable_type", "User"]]
|
|
3080
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
|
3081
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
3082
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3083
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00]]
|
|
3084
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3085
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3086
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "transactionable_credit_cards" ("created_at", "credit_cardable_id", "credit_cardable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00], ["credit_cardable_id", 1], ["credit_cardable_type", "User"], ["updated_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00]]
|
|
3087
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3088
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3089
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"], ["type", "Transactionable::RemoteCreditCard"], ["updated_at", Mon, 10 Mar 2014 13:48:17 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP2hgu613pxQrR6LufBofGhW/cards/CC2jcda3YthlpkHu2QplhpEu"]]
|
|
3090
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3091
|
+
[1m[36mTransactionable::CreditCard Load (0.1ms)[0m [1mSELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."id" = ? LIMIT 1[0m [["id", 1]]
|
|
3092
|
+
[1m[35mTransactionable::RemoteCreditCard Load (0.2ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCreditCard') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"]]
|
|
3093
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3094
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "transactionable_credit_cards" SET "description" = ?, "last_four" = ?, "brand" = ?, "expiration_month" = ?, "expiration_year" = ?, "expiration_date" = ?, "updated_at" = ? WHERE "transactionable_credit_cards"."id" = 1 [["description", "Visa (1111)"], ["last_four", 1111], ["brand", "Visa"], ["expiration_month", 12], ["expiration_year", 2016], ["expiration_date", Thu, 01 Dec 2016], ["updated_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00]]
|
|
3095
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3096
|
+
[1m[35mTransactionable::RemoteCustomer Load (0.1ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "User"]]
|
|
3097
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3098
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "synced_at", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "User"], ["synced_at", 2014-03-10 09:48:18 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00], ["uri", "/v1/customers/CU2kPDAMO1FMAqryJzPaSrvs"]]
|
|
3099
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3100
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
|
3101
|
+
[1m[36mTransactionable::RemoteCustomer Load (0.2ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "User"]]
|
|
3102
|
+
[1m[35mTransactionable::CreditCard Load (0.2ms)[0m SELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."credit_cardable_id" = ? AND "transactionable_credit_cards"."credit_cardable_type" = ? ORDER BY "transactionable_credit_cards"."id" ASC LIMIT 1 [["credit_cardable_id", 1], ["credit_cardable_type", "User"]]
|
|
3103
|
+
[1m[36mTransactionable::RemoteCreditCard Load (0.2ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCreditCard') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"]]
|
|
3104
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3105
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "transactionable_transactions" ("amount", "created_at", "status", "type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["amount", #<BigDecimal:105873880,'0.1337E2',18(45)>], ["created_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00], ["status", "succeeded"], ["type", "Transactionable::Debit"], ["updated_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00]]
|
|
3106
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3107
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3108
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::Transaction"], ["type", "Transactionable::RemoteTransaction"], ["updated_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP2hgu613pxQrR6LufBofGhW/debits/WD2qO5ACyGfr2zsdw8XUSv6f"]]
|
|
3109
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3110
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
3111
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "transactionable_transactions" SET "transactionable_id" = ?, "transactionable_type" = ?, "updated_at" = ? WHERE "transactionable_transactions"."type" IN ('Transactionable::Debit') AND "transactionable_transactions"."id" = 1[0m [["transactionable_id", 1], ["transactionable_type", "Transactionable::CreditCard"], ["updated_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00]]
|
|
3112
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3113
|
+
[1m[36mTransactionable::Transaction Load (0.1ms)[0m [1mSELECT "transactionable_transactions".* FROM "transactionable_transactions" WHERE "transactionable_transactions"."transactionable_id" = ? AND "transactionable_transactions"."transactionable_type" = ? ORDER BY "transactionable_transactions"."id" ASC LIMIT 1[0m [["transactionable_id", 1], ["transactionable_type", "Transactionable::CreditCard"]]
|
|
3114
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3115
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "transactionable_transaction_logs" ("created_at", "transaction_id", "transaction_loggable_id", "transaction_loggable_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00], ["transaction_id", 1], ["transaction_loggable_id", 1], ["transaction_loggable_type", "User"], ["updated_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00]]
|
|
3116
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3117
|
+
[1m[36mTransactionable::RemoteTransaction Load (0.1ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteTransaction') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "Transactionable::Transaction"]]
|
|
3118
|
+
[1m[35m (2.1ms)[0m rollback transaction
|
|
3119
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
3120
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
3121
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
3122
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
3123
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
3124
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3125
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00]]
|
|
3126
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3127
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
3128
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
3129
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3130
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00]]
|
|
3131
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3132
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
3133
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00]]
|
|
3134
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3135
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3136
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "transactionable_credit_cards" ("created_at", "credit_cardable_id", "credit_cardable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00], ["credit_cardable_id", 2], ["credit_cardable_type", "User"], ["updated_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00]]
|
|
3137
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3138
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
3139
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"], ["type", "Transactionable::RemoteCreditCard"], ["updated_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP4BaRyFJYl3py1q3xsf1IVQ/cards/CC4DiEesR18Tr2fPHz5uHbEA"]]
|
|
3140
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3141
|
+
[1m[36mTransactionable::CreditCard Load (0.1ms)[0m [1mSELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."id" = ? LIMIT 1[0m [["id", 1]]
|
|
3142
|
+
[1m[35mTransactionable::RemoteCreditCard Load (0.2ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCreditCard') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"]]
|
|
3143
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3144
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "transactionable_credit_cards" SET "description" = ?, "last_four" = ?, "brand" = ?, "expiration_month" = ?, "expiration_year" = ?, "expiration_date" = ?, "updated_at" = ? WHERE "transactionable_credit_cards"."id" = 1 [["description", "Visa (1111)"], ["last_four", 1111], ["brand", "Visa"], ["expiration_month", 12], ["expiration_year", 2016], ["expiration_date", Thu, 01 Dec 2016], ["updated_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00]]
|
|
3145
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3146
|
+
[1m[35mTransactionable::RemoteCustomer Load (0.1ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 2], ["local_entity_type", "User"]]
|
|
3147
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3148
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "synced_at", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "User"], ["synced_at", 2014-03-10 09:48:18 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Mon, 10 Mar 2014 13:48:18 UTC +00:00], ["uri", "/v1/customers/CU4EPqzr7YWAegGwGTBNZa76"]]
|
|
3149
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3150
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
|
|
3151
|
+
[1m[36mTransactionable::RemoteCustomer Load (0.2ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 2], ["local_entity_type", "User"]]
|
|
3152
|
+
[1m[35mTransactionable::CreditCard Load (0.1ms)[0m SELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."credit_cardable_id" = ? AND "transactionable_credit_cards"."credit_cardable_type" = ? ORDER BY "transactionable_credit_cards"."id" ASC LIMIT 1 [["credit_cardable_id", 2], ["credit_cardable_type", "User"]]
|
|
3153
|
+
[1m[36m (2.1ms)[0m [1mrollback transaction[0m
|
|
3154
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
3155
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3156
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00]]
|
|
3157
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3158
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
3159
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00]]
|
|
3160
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3161
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3162
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "transactionable_credit_cards" ("created_at", "credit_cardable_id", "credit_cardable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00], ["credit_cardable_id", 2], ["credit_cardable_type", "User"], ["updated_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00]]
|
|
3163
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3164
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
3165
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"], ["type", "Transactionable::RemoteCreditCard"], ["updated_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP4BaRyFJYl3py1q3xsf1IVQ/cards/CC4DiEesR18Tr2fPHz5uHbEA"]]
|
|
3166
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3167
|
+
[1m[36mTransactionable::CreditCard Load (0.1ms)[0m [1mSELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."id" = ? LIMIT 1[0m [["id", 1]]
|
|
3168
|
+
[1m[35mTransactionable::RemoteCreditCard Load (0.2ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCreditCard') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"]]
|
|
3169
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3170
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "transactionable_credit_cards" SET "description" = ?, "last_four" = ?, "brand" = ?, "expiration_month" = ?, "expiration_year" = ?, "expiration_date" = ?, "updated_at" = ? WHERE "transactionable_credit_cards"."id" = 1 [["description", "Visa (1111)"], ["last_four", 1111], ["brand", "Visa"], ["expiration_month", 12], ["expiration_year", 2016], ["expiration_date", Thu, 01 Dec 2016], ["updated_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00]]
|
|
3171
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3172
|
+
[1m[35mTransactionable::RemoteCustomer Load (0.1ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 2], ["local_entity_type", "User"]]
|
|
3173
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3174
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "synced_at", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "User"], ["synced_at", 2014-03-10 09:48:19 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00], ["uri", "/v1/customers/CU4EPqzr7YWAegGwGTBNZa76"]]
|
|
3175
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3176
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
|
|
3177
|
+
[1m[36mTransactionable::RemoteCustomer Load (0.2ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 2], ["local_entity_type", "User"]]
|
|
3178
|
+
[1m[35mTransactionable::CreditCard Load (0.1ms)[0m SELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."credit_cardable_id" = ? AND "transactionable_credit_cards"."credit_cardable_type" = ? ORDER BY "transactionable_credit_cards"."id" ASC LIMIT 1 [["credit_cardable_id", 2], ["credit_cardable_type", "User"]]
|
|
3179
|
+
[1m[36mTransactionable::RemoteCreditCard Load (0.2ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCreditCard') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"]]
|
|
3180
|
+
[1m[35m (2.0ms)[0m rollback transaction
|
|
3181
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
3182
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3183
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00]]
|
|
3184
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3185
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3186
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00]]
|
|
3187
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3188
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3189
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "transactionable_credit_cards" ("created_at", "credit_cardable_id", "credit_cardable_type", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00], ["credit_cardable_id", 2], ["credit_cardable_type", "User"], ["updated_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00]]
|
|
3190
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3191
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3192
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"], ["type", "Transactionable::RemoteCreditCard"], ["updated_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP4BaRyFJYl3py1q3xsf1IVQ/cards/CC4DiEesR18Tr2fPHz5uHbEA"]]
|
|
3193
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3194
|
+
[1m[35mTransactionable::CreditCard Load (0.1ms)[0m SELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."id" = ? LIMIT 1 [["id", 1]]
|
|
3195
|
+
[1m[36mTransactionable::RemoteCreditCard Load (0.2ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCreditCard') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"]]
|
|
3196
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3197
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "transactionable_credit_cards" SET "description" = ?, "last_four" = ?, "brand" = ?, "expiration_month" = ?, "expiration_year" = ?, "expiration_date" = ?, "updated_at" = ? WHERE "transactionable_credit_cards"."id" = 1[0m [["description", "Visa (1111)"], ["last_four", 1111], ["brand", "Visa"], ["expiration_month", 12], ["expiration_year", 2016], ["expiration_date", Thu, 01 Dec 2016], ["updated_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00]]
|
|
3198
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3199
|
+
[1m[36mTransactionable::RemoteCustomer Load (0.1ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 2], ["local_entity_type", "User"]]
|
|
3200
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3201
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "synced_at", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "User"], ["synced_at", 2014-03-10 09:48:19 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Mon, 10 Mar 2014 13:48:19 UTC +00:00], ["uri", "/v1/customers/CU4EPqzr7YWAegGwGTBNZa76"]]
|
|
3202
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3203
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
|
|
3204
|
+
[1m[35mTransactionable::RemoteCustomer Load (0.2ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 2], ["local_entity_type", "User"]]
|
|
3205
|
+
[1m[36mTransactionable::CreditCard Load (0.1ms)[0m [1mSELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."credit_cardable_id" = ? AND "transactionable_credit_cards"."credit_cardable_type" = ? ORDER BY "transactionable_credit_cards"."id" ASC LIMIT 1[0m [["credit_cardable_id", 2], ["credit_cardable_type", "User"]]
|
|
3206
|
+
[1m[35mTransactionable::CreditCard Load (0.2ms)[0m SELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."credit_cardable_id" = ? AND "transactionable_credit_cards"."credit_cardable_type" = ? [["credit_cardable_id", 2], ["credit_cardable_type", "User"]]
|
|
3207
|
+
[1m[36m (2.0ms)[0m [1mrollback transaction[0m
|
|
3208
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
3209
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3210
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 10 Mar 2014 13:48:20 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:20 UTC +00:00]]
|
|
3211
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3212
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
3213
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:20 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:20 UTC +00:00]]
|
|
3214
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3215
|
+
[1m[36mTransactionable::RemoteCustomer Load (0.1ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 2], ["local_entity_type", "User"]]
|
|
3216
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3217
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "synced_at", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:20 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "User"], ["synced_at", 2014-03-10 09:48:20 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Mon, 10 Mar 2014 13:48:20 UTC +00:00], ["uri", "/v1/customers/CU3jmsm9nnkhJmPp5YKJE5SK"]]
|
|
3218
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3219
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
|
|
3220
|
+
[1m[35mTransactionable::RemoteCustomer Load (0.2ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 2], ["local_entity_type", "User"]]
|
|
3221
|
+
[1m[36m (2.0ms)[0m [1mrollback transaction[0m
|
|
3222
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
3223
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3224
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 10 Mar 2014 13:48:20 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:20 UTC +00:00]]
|
|
3225
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3226
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
3227
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:20 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:20 UTC +00:00]]
|
|
3228
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3229
|
+
[1m[36mTransactionable::RemoteCustomer Load (0.1ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 2], ["local_entity_type", "User"]]
|
|
3230
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3231
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "synced_at", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:20 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "User"], ["synced_at", 2014-03-10 09:48:20 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Mon, 10 Mar 2014 13:48:20 UTC +00:00], ["uri", "/v1/customers/CU3jmsm9nnkhJmPp5YKJE5SK"]]
|
|
3232
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3233
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
|
|
3234
|
+
[1m[35mTransactionable::RemoteCustomer Load (0.2ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 2], ["local_entity_type", "User"]]
|
|
3235
|
+
[1m[36m (2.0ms)[0m [1mrollback transaction[0m
|
|
3236
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
3237
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3238
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 10 Mar 2014 13:48:20 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:20 UTC +00:00]]
|
|
3239
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3240
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3241
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:20 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:20 UTC +00:00]]
|
|
3242
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3243
|
+
[1m[36mTransactionable::RemoteCustomer Load (0.1ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 2], ["local_entity_type", "User"]]
|
|
3244
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3245
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "synced_at", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:20 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "User"], ["synced_at", 2014-03-10 09:48:20 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Mon, 10 Mar 2014 13:48:20 UTC +00:00], ["uri", "/v1/customers/CU3DIXq7UemATmqKcGWRGaqs"]]
|
|
3246
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3247
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
|
|
3248
|
+
[1m[35mTransactionable::RemoteCustomer Load (0.1ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 2], ["local_entity_type", "User"]]
|
|
3249
|
+
[1m[36m (2.0ms)[0m [1mrollback transaction[0m
|
|
3250
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
3251
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3252
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00]]
|
|
3253
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3254
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
3255
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00]]
|
|
3256
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3257
|
+
[1m[36mTransactionable::RemoteCustomer Load (0.1ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 2], ["local_entity_type", "User"]]
|
|
3258
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3259
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "synced_at", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "User"], ["synced_at", 2014-03-10 09:48:21 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["uri", "/v1/customers/CU3DIXq7UemATmqKcGWRGaqs"]]
|
|
3260
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3261
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
|
|
3262
|
+
[1m[35mTransactionable::RemoteCustomer Load (0.2ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 2], ["local_entity_type", "User"]]
|
|
3263
|
+
[1m[36m (2.0ms)[0m [1mrollback transaction[0m
|
|
3264
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
3265
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3266
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00]]
|
|
3267
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3268
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
|
3269
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
3270
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3271
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00]]
|
|
3272
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3273
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3274
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00]]
|
|
3275
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3276
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3277
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "transactionable_bank_accounts" ("bank_accountable_id", "bank_accountable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["bank_accountable_id", 2], ["bank_accountable_type", "User"], ["created_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00]]
|
|
3278
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3279
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3280
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::BankAccount"], ["type", "Transactionable::RemoteBankAccount"], ["updated_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["uri", "/v1/bank_accounts/BA4VaKDWeShJgL5JIEMhjGjw"]]
|
|
3281
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3282
|
+
[1m[35mTransactionable::BankAccount Load (0.2ms)[0m SELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
|
3283
|
+
[1m[36mTransactionable::RemoteBankAccount Load (0.3ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteBankAccount') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "Transactionable::BankAccount"]]
|
|
3284
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3285
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "transactionable_bank_accounts" SET "bank_name" = ?, "description" = ?, "name" = ?, "can_debit" = ?, "account_type" = ?, "updated_at" = ? WHERE "transactionable_bank_accounts"."id" = 1[0m [["bank_name", "JPMORGAN CHASE BANK"], ["description", "xxxxxx0002"], ["name", "Mario"], ["can_debit", false], ["account_type", "checking"], ["updated_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00]]
|
|
3286
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3287
|
+
[1m[36mTransactionable::RemoteCustomer Load (0.2ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 2], ["local_entity_type", "User"]]
|
|
3288
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3289
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "synced_at", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "User"], ["synced_at", 2014-03-10 09:48:21 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["uri", "/v1/customers/CU4ZCytqblNrwcEJ7PvNRQIL"]]
|
|
3290
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3291
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
|
|
3292
|
+
[1m[35mTransactionable::RemoteCustomer Load (0.4ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 2], ["local_entity_type", "User"]]
|
|
3293
|
+
[1m[36mTransactionable::BankAccount Load (0.3ms)[0m [1mSELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."bank_accountable_id" = ? AND "transactionable_bank_accounts"."bank_accountable_type" = ? ORDER BY "transactionable_bank_accounts"."id" ASC LIMIT 1[0m [["bank_accountable_id", 2], ["bank_accountable_type", "User"]]
|
|
3294
|
+
[1m[35m (2.0ms)[0m rollback transaction
|
|
3295
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
3296
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3297
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00]]
|
|
3298
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3299
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3300
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00]]
|
|
3301
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3302
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3303
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "transactionable_bank_accounts" ("bank_accountable_id", "bank_accountable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["bank_accountable_id", 2], ["bank_accountable_type", "User"], ["created_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00]]
|
|
3304
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3305
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3306
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::BankAccount"], ["type", "Transactionable::RemoteBankAccount"], ["updated_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00], ["uri", "/v1/bank_accounts/BA4VaKDWeShJgL5JIEMhjGjw"]]
|
|
3307
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3308
|
+
[1m[35mTransactionable::BankAccount Load (0.1ms)[0m SELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
|
3309
|
+
[1m[36mTransactionable::RemoteBankAccount Load (0.2ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteBankAccount') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "Transactionable::BankAccount"]]
|
|
3310
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3311
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "transactionable_bank_accounts" SET "bank_name" = ?, "description" = ?, "name" = ?, "can_debit" = ?, "account_type" = ?, "updated_at" = ? WHERE "transactionable_bank_accounts"."id" = 1[0m [["bank_name", "JPMORGAN CHASE BANK"], ["description", "xxxxxx0002"], ["name", "Mario"], ["can_debit", false], ["account_type", "checking"], ["updated_at", Mon, 10 Mar 2014 13:48:21 UTC +00:00]]
|
|
3312
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3313
|
+
[1m[36mTransactionable::RemoteCustomer Load (0.2ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 2], ["local_entity_type", "User"]]
|
|
3314
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3315
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "synced_at", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:22 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "User"], ["synced_at", 2014-03-10 09:48:22 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Mon, 10 Mar 2014 13:48:22 UTC +00:00], ["uri", "/v1/customers/CU4ZCytqblNrwcEJ7PvNRQIL"]]
|
|
3316
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3317
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
|
|
3318
|
+
[1m[35mTransactionable::RemoteCustomer Load (0.2ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 2], ["local_entity_type", "User"]]
|
|
3319
|
+
[1m[36mTransactionable::BankAccount Load (0.2ms)[0m [1mSELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."bank_accountable_id" = ? AND "transactionable_bank_accounts"."bank_accountable_type" = ? ORDER BY "transactionable_bank_accounts"."id" ASC LIMIT 1[0m [["bank_accountable_id", 2], ["bank_accountable_type", "User"]]
|
|
3320
|
+
[1m[35mTransactionable::RemoteBankAccount Load (0.2ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteBankAccount') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "Transactionable::BankAccount"]]
|
|
3321
|
+
[1m[36m (2.0ms)[0m [1mrollback transaction[0m
|
|
3322
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
3323
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3324
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 10 Mar 2014 13:48:22 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:22 UTC +00:00]]
|
|
3325
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3326
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
3327
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:22 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:22 UTC +00:00]]
|
|
3328
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3329
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3330
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "transactionable_bank_accounts" ("bank_accountable_id", "bank_accountable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["bank_accountable_id", 2], ["bank_accountable_type", "User"], ["created_at", Mon, 10 Mar 2014 13:48:22 UTC +00:00], ["updated_at", Mon, 10 Mar 2014 13:48:22 UTC +00:00]]
|
|
3331
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3332
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3333
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 10 Mar 2014 13:48:22 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::BankAccount"], ["type", "Transactionable::RemoteBankAccount"], ["updated_at", Mon, 10 Mar 2014 13:48:22 UTC +00:00], ["uri", "/v1/bank_accounts/BA4VaKDWeShJgL5JIEMhjGjw"]]
|
|
3334
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3335
|
+
[1m[36mTransactionable::BankAccount Load (0.1ms)[0m [1mSELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
|
3336
|
+
[1m[35mTransactionable::RemoteBankAccount Load (0.2ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteBankAccount') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "Transactionable::BankAccount"]]
|
|
3337
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3338
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "transactionable_bank_accounts" SET "bank_name" = ?, "description" = ?, "name" = ?, "can_debit" = ?, "account_type" = ?, "updated_at" = ? WHERE "transactionable_bank_accounts"."id" = 1 [["bank_name", "JPMORGAN CHASE BANK"], ["description", "xxxxxx0002"], ["name", "Mario"], ["can_debit", false], ["account_type", "checking"], ["updated_at", Mon, 10 Mar 2014 13:48:22 UTC +00:00]]
|
|
3339
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3340
|
+
[1m[35mTransactionable::RemoteCustomer Load (0.1ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 2], ["local_entity_type", "User"]]
|
|
3341
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3342
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "synced_at", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 10 Mar 2014 13:48:22 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "User"], ["synced_at", 2014-03-10 09:48:22 -0400], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Mon, 10 Mar 2014 13:48:22 UTC +00:00], ["uri", "/v1/customers/CU4ZCytqblNrwcEJ7PvNRQIL"]]
|
|
3343
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3344
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
|
|
3345
|
+
[1m[36mTransactionable::RemoteCustomer Load (0.2ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 2], ["local_entity_type", "User"]]
|
|
3346
|
+
[1m[35mTransactionable::BankAccount Load (0.2ms)[0m SELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."bank_accountable_id" = ? AND "transactionable_bank_accounts"."bank_accountable_type" = ? ORDER BY "transactionable_bank_accounts"."id" ASC LIMIT 1 [["bank_accountable_id", 2], ["bank_accountable_type", "User"]]
|
|
3347
|
+
[1m[36mTransactionable::BankAccount Load (0.2ms)[0m [1mSELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."bank_accountable_id" = ? AND "transactionable_bank_accounts"."bank_accountable_type" = ?[0m [["bank_accountable_id", 2], ["bank_accountable_type", "User"]]
|
|
3348
|
+
[1m[35m (2.0ms)[0m rollback transaction
|
|
@@ -16,12 +16,14 @@ describe "Transactionable::CreditCard" do
|
|
|
16
16
|
@credit_card = @user.credit_cards.first
|
|
17
17
|
@credit_card.debit!(13.37)
|
|
18
18
|
@transaction = @credit_card.transactions.first
|
|
19
|
+
@user.log_transaction(@transaction)
|
|
19
20
|
@remote_transaction = @transaction.remote
|
|
20
21
|
end
|
|
21
22
|
|
|
22
23
|
specify { @credit_card.debits.should_not be_blank }
|
|
23
24
|
specify { @credit_card.debits.first.should eql @transaction }
|
|
24
25
|
specify { @transaction.should be_instance_of Transactionable::Debit }
|
|
26
|
+
specify { @user.transactions.should include(@transaction) }
|
|
25
27
|
specify { @remote_transaction.should be_instance_of Balanced::Debit }
|
|
26
28
|
specify { (@transaction.amount*100).should eql @remote_transaction.amount }
|
|
27
29
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: transactionable
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vadim Timoshpolsky
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-03-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -151,6 +151,7 @@ files:
|
|
|
151
151
|
- app/models/transactionable/remote_transaction.rb
|
|
152
152
|
- app/models/transactionable/reversal.rb
|
|
153
153
|
- app/models/transactionable/transaction.rb
|
|
154
|
+
- app/models/transactionable/transaction_log.rb
|
|
154
155
|
- app/views/layouts/transactionable/application.html.erb
|
|
155
156
|
- app/views/transactionable/shared/_bank_account_form.html.erb
|
|
156
157
|
- app/views/transactionable/shared/_credit_card_form.html.erb
|
|
@@ -159,6 +160,8 @@ files:
|
|
|
159
160
|
- db/migrate/20140108182203_create_transactionable_credit_cards.rb
|
|
160
161
|
- db/migrate/20140108190511_create_transactionable_transactions.rb
|
|
161
162
|
- db/migrate/20140108213120_create_transactionable_bank_accounts.rb
|
|
163
|
+
- db/migrate/20140307200039_create_transactionable_transaction_logs.rb
|
|
164
|
+
- db/migrate/20140307200730_remove_transaction_loggable_from_transactionable_transactions.rb
|
|
162
165
|
- lib/generators/transactionable/USAGE
|
|
163
166
|
- lib/generators/transactionable/views_generator.rb
|
|
164
167
|
- lib/tasks/transactionable_tasks.rake
|
|
@@ -169,6 +172,7 @@ files:
|
|
|
169
172
|
- lib/transactionable/credit_card_transactionable.rb
|
|
170
173
|
- lib/transactionable/engine.rb
|
|
171
174
|
- lib/transactionable/exceptions.rb
|
|
175
|
+
- lib/transactionable/transaction_loggable.rb
|
|
172
176
|
- lib/transactionable/version.rb
|
|
173
177
|
- spec/dummy/README.rdoc
|
|
174
178
|
- spec/dummy/Rakefile
|
|
@@ -214,6 +218,7 @@ files:
|
|
|
214
218
|
- spec/factories/transactionable_remote_credit_cards.rb
|
|
215
219
|
- spec/factories/transactionable_remote_customers.rb
|
|
216
220
|
- spec/factories/transactionable_remote_transactions.rb
|
|
221
|
+
- spec/factories/transactionable_transaction_logs.rb
|
|
217
222
|
- spec/integration/acts_as_bank_account_transactionable_spec.rb
|
|
218
223
|
- spec/integration/acts_as_credit_card_transactionable_spec.rb
|
|
219
224
|
- spec/integration/models/credit_card_spec.rb
|
|
@@ -228,6 +233,7 @@ files:
|
|
|
228
233
|
- spec/models/transactionable/remote_customer_spec.rb
|
|
229
234
|
- spec/models/transactionable/remote_transaction_spec.rb
|
|
230
235
|
- spec/models/transactionable/reversal_spec.rb
|
|
236
|
+
- spec/models/transactionable/transaction_log_spec.rb
|
|
231
237
|
- spec/models/transactionable/transaction_spec.rb
|
|
232
238
|
- spec/spec_helper.rb
|
|
233
239
|
homepage: https://github.com/TanookiSuitLabs/transactionable
|
|
@@ -298,6 +304,7 @@ test_files:
|
|
|
298
304
|
- spec/factories/transactionable_remote_credit_cards.rb
|
|
299
305
|
- spec/factories/transactionable_remote_customers.rb
|
|
300
306
|
- spec/factories/transactionable_remote_transactions.rb
|
|
307
|
+
- spec/factories/transactionable_transaction_logs.rb
|
|
301
308
|
- spec/integration/acts_as_bank_account_transactionable_spec.rb
|
|
302
309
|
- spec/integration/acts_as_credit_card_transactionable_spec.rb
|
|
303
310
|
- spec/integration/models/credit_card_spec.rb
|
|
@@ -312,6 +319,6 @@ test_files:
|
|
|
312
319
|
- spec/models/transactionable/remote_customer_spec.rb
|
|
313
320
|
- spec/models/transactionable/remote_transaction_spec.rb
|
|
314
321
|
- spec/models/transactionable/reversal_spec.rb
|
|
322
|
+
- spec/models/transactionable/transaction_log_spec.rb
|
|
315
323
|
- spec/models/transactionable/transaction_spec.rb
|
|
316
324
|
- spec/spec_helper.rb
|
|
317
|
-
has_rdoc:
|