payola-payments 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/app/mailers/payola/receipt_mailer.rb +6 -0
- data/lib/payola/version.rb +1 -1
- data/spec/dummy/log/test.log +1707 -0
- data/spec/payola_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ODA0NTAxNDgzNTJmNjBlNThmNGI3YjkzOThhMTEwODMzOTM2OTgzMg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NjVhZjQ4MjJjZTc2MDJiNjkxYjc0MzY2MTFlMTRiZDE2YmQxMTgyOA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MDA3NjFiM2E2ZjAyNGNjZDQ1Nzg0MDQwYTY1N2I2YjlkZDA3YmU5MTJhMGQ1
|
10
|
+
Y2Q3MWM4OTM0YzE0ODNkOTAzYjhjOTU4ZjY1NDk1Y2ZiMjA1ZmQ3ODY5YzQy
|
11
|
+
YjgxZWM1M2Y4ZmRkMGMzZWQyN2VlODNhYWJjMTU4NDgyMDgyNzQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MGUyMjM5MjZkMGI1MjY2NWFkMDZmNWUyMmY3OWZjYTlkYTZkYWMwMzhjNGJl
|
14
|
+
MWU3Y2YwYjU4ZTJiYjQwNGI1YmRjOWY0MTExYzAzMmUwMzA3YmRiYjhjMGFl
|
15
|
+
NDQ3MjM1MWU2YmE3Y2U5YzEzZTgzMGJiMTkyYjRkYzQ3MGUxMTE=
|
@@ -19,6 +19,7 @@ module Payola
|
|
19
19
|
|
20
20
|
mail_params = {
|
21
21
|
to: @sale.email,
|
22
|
+
from: Payola.support_email,
|
22
23
|
subject: @product.respond_to?(:receipt_subject) ? @product.receipt_subject(@sale) : 'Purchase Receipt',
|
23
24
|
}
|
24
25
|
|
@@ -37,9 +38,14 @@ module Payola
|
|
37
38
|
|
38
39
|
mail_params = {
|
39
40
|
to: @sale.email,
|
41
|
+
from: Payola.support_email,
|
40
42
|
subject: @product.respond_to?(:refund_subject) ? @product.refund_subject(@sale) : 'Refund Confirmation',
|
41
43
|
}
|
42
44
|
|
45
|
+
if @product.respond_to?(:refund_from_address)
|
46
|
+
mail_params[:from] = @product.refund_from_address(@sale)
|
47
|
+
end
|
48
|
+
|
43
49
|
mail(mail_params)
|
44
50
|
end
|
45
51
|
end
|
data/lib/payola/version.rb
CHANGED
data/spec/dummy/log/test.log
CHANGED
@@ -32378,3 +32378,1710 @@ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
|
|
32378
32378
|
[1m[35m (0.6ms)[0m rollback transaction
|
32379
32379
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
32380
32380
|
[1m[35m (0.1ms)[0m rollback transaction
|
32381
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "owners" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
32382
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "payola_affiliates" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar(255), "email" varchar(255), "percent" integer, "created_at" datetime, "updated_at" datetime)
|
32383
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "payola_coupons" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar(255), "percent_off" integer, "created_at" datetime, "updated_at" datetime) [0m
|
32384
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "payola_sales" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255), "guid" varchar(255), "product_id" integer, "product_type" varchar(255), "created_at" datetime, "updated_at" datetime, "state" varchar(255), "stripe_id" varchar(255), "stripe_token" varchar(255), "card_last4" varchar(255), "card_expiration" date, "card_type" varchar(255), "error" text, "amount" integer, "fee_amount" integer, "coupon_id" integer, "opt_in" boolean, "download_count" integer, "affiliate_id" integer, "customer_address" text, "business_address" text, "stripe_customer_id" varchar(255), "currency" varchar(255), "signed_custom_fields" text, "owner_id" integer, "owner_type" varchar(255))
|
32385
|
+
[1m[36m (0.2ms)[0m [1mselect sqlite_version(*)[0m
|
32386
|
+
[1m[35m (1.0ms)[0m CREATE INDEX "index_payola_sales_on_coupon_id" ON "payola_sales" ("coupon_id")
|
32387
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
32388
|
+
FROM sqlite_master
|
32389
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
32390
|
+
UNION ALL
|
32391
|
+
SELECT sql
|
32392
|
+
FROM sqlite_temp_master
|
32393
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
32394
|
+
[0m
|
32395
|
+
[1m[35m (0.8ms)[0m CREATE INDEX "index_payola_sales_on_email" ON "payola_sales" ("email")
|
32396
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
32397
|
+
FROM sqlite_master
|
32398
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
32399
|
+
UNION ALL
|
32400
|
+
SELECT sql
|
32401
|
+
FROM sqlite_temp_master
|
32402
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
32403
|
+
[0m
|
32404
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
32405
|
+
FROM sqlite_master
|
32406
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
32407
|
+
UNION ALL
|
32408
|
+
SELECT sql
|
32409
|
+
FROM sqlite_temp_master
|
32410
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
32411
|
+
|
32412
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_payola_sales_on_guid" ON "payola_sales" ("guid")[0m
|
32413
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
32414
|
+
FROM sqlite_master
|
32415
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
32416
|
+
UNION ALL
|
32417
|
+
SELECT sql
|
32418
|
+
FROM sqlite_temp_master
|
32419
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
32420
|
+
|
32421
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
32422
|
+
FROM sqlite_master
|
32423
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
32424
|
+
UNION ALL
|
32425
|
+
SELECT sql
|
32426
|
+
FROM sqlite_temp_master
|
32427
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
32428
|
+
[0m
|
32429
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
32430
|
+
FROM sqlite_master
|
32431
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
32432
|
+
UNION ALL
|
32433
|
+
SELECT sql
|
32434
|
+
FROM sqlite_temp_master
|
32435
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
32436
|
+
|
32437
|
+
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_payola_sales_on_owner_id_and_owner_type" ON "payola_sales" ("owner_id", "owner_type")[0m
|
32438
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
32439
|
+
FROM sqlite_master
|
32440
|
+
WHERE name='index_payola_sales_on_owner_id_and_owner_type' AND type='index'
|
32441
|
+
UNION ALL
|
32442
|
+
SELECT sql
|
32443
|
+
FROM sqlite_temp_master
|
32444
|
+
WHERE name='index_payola_sales_on_owner_id_and_owner_type' AND type='index'
|
32445
|
+
|
32446
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
32447
|
+
FROM sqlite_master
|
32448
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
32449
|
+
UNION ALL
|
32450
|
+
SELECT sql
|
32451
|
+
FROM sqlite_temp_master
|
32452
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
32453
|
+
[0m
|
32454
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
32455
|
+
FROM sqlite_master
|
32456
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
32457
|
+
UNION ALL
|
32458
|
+
SELECT sql
|
32459
|
+
FROM sqlite_temp_master
|
32460
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
32461
|
+
|
32462
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
32463
|
+
FROM sqlite_master
|
32464
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
32465
|
+
UNION ALL
|
32466
|
+
SELECT sql
|
32467
|
+
FROM sqlite_temp_master
|
32468
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
32469
|
+
[0m
|
32470
|
+
[1m[35m (1.2ms)[0m CREATE INDEX "index_payola_sales_on_product" ON "payola_sales" ("product_id", "product_type")
|
32471
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
32472
|
+
FROM sqlite_master
|
32473
|
+
WHERE name='index_payola_sales_on_product' AND type='index'
|
32474
|
+
UNION ALL
|
32475
|
+
SELECT sql
|
32476
|
+
FROM sqlite_temp_master
|
32477
|
+
WHERE name='index_payola_sales_on_product' AND type='index'
|
32478
|
+
[0m
|
32479
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
32480
|
+
FROM sqlite_master
|
32481
|
+
WHERE name='index_payola_sales_on_owner_id_and_owner_type' AND type='index'
|
32482
|
+
UNION ALL
|
32483
|
+
SELECT sql
|
32484
|
+
FROM sqlite_temp_master
|
32485
|
+
WHERE name='index_payola_sales_on_owner_id_and_owner_type' AND type='index'
|
32486
|
+
|
32487
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
32488
|
+
FROM sqlite_master
|
32489
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
32490
|
+
UNION ALL
|
32491
|
+
SELECT sql
|
32492
|
+
FROM sqlite_temp_master
|
32493
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
32494
|
+
[0m
|
32495
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
32496
|
+
FROM sqlite_master
|
32497
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
32498
|
+
UNION ALL
|
32499
|
+
SELECT sql
|
32500
|
+
FROM sqlite_temp_master
|
32501
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
32502
|
+
|
32503
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
32504
|
+
FROM sqlite_master
|
32505
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
32506
|
+
UNION ALL
|
32507
|
+
SELECT sql
|
32508
|
+
FROM sqlite_temp_master
|
32509
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
32510
|
+
[0m
|
32511
|
+
[1m[35m (0.9ms)[0m CREATE INDEX "index_payola_sales_on_stripe_customer_id" ON "payola_sales" ("stripe_customer_id")
|
32512
|
+
[1m[36m (0.7ms)[0m [1mCREATE TABLE "payola_stripe_webhooks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "stripe_id" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
32513
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "permalink" varchar(255), "price" integer, "created_at" datetime, "updated_at" datetime)
|
32514
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
32515
|
+
[1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
32516
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
32517
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141029140518')
|
32518
|
+
[1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141001230848')[0m
|
32519
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141001170138')
|
32520
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141001203541')[0m
|
32521
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141002013618')
|
32522
|
+
[1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141002013701')[0m
|
32523
|
+
[1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141002203725')
|
32524
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141017233304')[0m
|
32525
|
+
[1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141026101628')
|
32526
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141026144800')[0m
|
32527
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141029135848')
|
32528
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
32529
|
+
[1m[35m (0.1ms)[0m begin transaction
|
32530
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32531
|
+
[1m[35m (0.1ms)[0m begin transaction
|
32532
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32533
|
+
[1m[35m (0.1ms)[0m begin transaction
|
32534
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
32535
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-1' LIMIT 1
|
32536
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:31:42.613118"], ["name", "Foo"], ["permalink", "foo-1"], ["price", 100], ["updated_at", "2014-11-03 21:31:42.613118"]]
|
32537
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32538
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
32539
|
+
[1m[35mProduct Exists (0.2ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-2' LIMIT 1
|
32540
|
+
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:31:42.640546"], ["name", "Foo"], ["permalink", "foo-2"], ["price", 100], ["updated_at", "2014-11-03 21:31:42.640546"]]
|
32541
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
32542
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
32543
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
32544
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
32545
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = '8qiopn' LIMIT 1
|
32546
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:31:42.692903"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "8qiopn"], ["product_id", 2], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:31:42.692903"]]
|
32547
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32548
|
+
Processing by Payola::TransactionsController#status as HTML
|
32549
|
+
Parameters: {"guid"=>"8qiopn"}
|
32550
|
+
[1m[36mPayola::Sale Load (0.2ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."guid" = '8qiopn' ORDER BY "payola_sales"."id" ASC LIMIT 1[0m
|
32551
|
+
Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 0.2ms)
|
32552
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
32553
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
32554
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
32555
|
+
[1m[36mProduct Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-3' LIMIT 1[0m
|
32556
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:31:42.710563"], ["name", "Foo"], ["permalink", "foo-3"], ["price", 100], ["updated_at", "2014-11-03 21:31:42.710563"]]
|
32557
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32558
|
+
Processing by Payola::TransactionsController#status as HTML
|
32559
|
+
Parameters: {"guid"=>"doesnotexist"}
|
32560
|
+
[1m[35mPayola::Sale Load (0.2ms)[0m SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."guid" = 'doesnotexist' ORDER BY "payola_sales"."id" ASC LIMIT 1
|
32561
|
+
Completed 404 Not Found in 12ms (Views: 10.4ms | ActiveRecord: 0.2ms)
|
32562
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
32563
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32564
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
32565
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-4' LIMIT 1
|
32566
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:31:42.729253"], ["name", "Foo"], ["permalink", "foo-4"], ["price", 100], ["updated_at", "2014-11-03 21:31:42.729253"]]
|
32567
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32568
|
+
Processing by Payola::TransactionsController#create as HTML
|
32569
|
+
Parameters: {"product_class"=>"product", "permalink"=>"foo-4"}
|
32570
|
+
[1m[36mProduct Load (0.1ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."permalink" = 'foo-4' LIMIT 1[0m
|
32571
|
+
[1m[35mPayola::Coupon Load (0.1ms)[0m SELECT "payola_coupons".* FROM "payola_coupons" WHERE (lower(code) = lower(NULL)) ORDER BY "payola_coupons"."id" ASC LIMIT 1
|
32572
|
+
[1m[36mPayola::Affiliate Load (0.1ms)[0m [1mSELECT "payola_affiliates".* FROM "payola_affiliates" WHERE (lower(code) = lower(NULL)) ORDER BY "payola_affiliates"."id" ASC LIMIT 1[0m
|
32573
|
+
Completed 200 OK in 11ms (Views: 0.3ms | ActiveRecord: 0.7ms)
|
32574
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
32575
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
32576
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
32577
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-5' LIMIT 1[0m
|
32578
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:31:42.747388"], ["name", "Foo"], ["permalink", "foo-5"], ["price", 100], ["updated_at", "2014-11-03 21:31:42.747388"]]
|
32579
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32580
|
+
Processing by Payola::TransactionsController#create as HTML
|
32581
|
+
Parameters: {"product_class"=>"product", "permalink"=>"foo-5"}
|
32582
|
+
[1m[35mProduct Load (0.1ms)[0m SELECT "products".* FROM "products" WHERE "products"."permalink" = 'foo-5' LIMIT 1
|
32583
|
+
[1m[36mPayola::Coupon Load (0.1ms)[0m [1mSELECT "payola_coupons".* FROM "payola_coupons" WHERE (lower(code) = lower(NULL)) ORDER BY "payola_coupons"."id" ASC LIMIT 1[0m
|
32584
|
+
[1m[35mPayola::Affiliate Load (0.1ms)[0m SELECT "payola_affiliates".* FROM "payola_affiliates" WHERE (lower(code) = lower(NULL)) ORDER BY "payola_affiliates"."id" ASC LIMIT 1
|
32585
|
+
Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
|
32586
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
32587
|
+
[1m[35m (0.1ms)[0m begin transaction
|
32588
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
32589
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-6' LIMIT 1
|
32590
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:31:42.757845"], ["name", "Foo"], ["permalink", "foo-6"], ["price", 100], ["updated_at", "2014-11-03 21:31:42.757845"]]
|
32591
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32592
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32593
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-7' LIMIT 1
|
32594
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:31:42.760400"], ["name", "Foo"], ["permalink", "foo-7"], ["price", 100], ["updated_at", "2014-11-03 21:31:42.760400"]]
|
32595
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32596
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32597
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
32598
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
32599
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'q05uuj' LIMIT 1
|
32600
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:31:42.763629"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "q05uuj"], ["product_id", 2], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:31:42.763629"]]
|
32601
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
32602
|
+
Processing by Payola::TransactionsController#show as HTML
|
32603
|
+
Parameters: {"guid"=>"q05uuj"}
|
32604
|
+
[1m[36mPayola::Sale Load (0.2ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."guid" = 'q05uuj' LIMIT 1[0m
|
32605
|
+
[1m[35mProduct Load (0.1ms)[0m SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1 [["id", 2]]
|
32606
|
+
Redirected to http://test.host/
|
32607
|
+
Completed 302 Found in 6ms (ActiveRecord: 0.3ms)
|
32608
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
32609
|
+
[1m[35m (0.1ms)[0m begin transaction
|
32610
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
32611
|
+
[1m[35mPayola::StripeWebhook Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_stripe_webhooks" WHERE "payola_stripe_webhooks"."stripe_id" = 'test_id' LIMIT 1
|
32612
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "payola_stripe_webhooks" ("created_at", "stripe_id", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-03 21:31:42.782366"], ["stripe_id", "test_id"], ["updated_at", "2014-11-03 21:31:42.782366"]]
|
32613
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
32614
|
+
[1m[36mPayola::StripeWebhook Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_stripe_webhooks" WHERE "payola_stripe_webhooks"."stripe_id" = 'test_id' LIMIT 1[0m
|
32615
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
32616
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
32617
|
+
[1m[35mPayola::StripeWebhook Exists (0.2ms)[0m SELECT 1 AS one FROM "payola_stripe_webhooks" WHERE "payola_stripe_webhooks"."stripe_id" = 'test_id' LIMIT 1
|
32618
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32619
|
+
[1m[35m (0.1ms)[0m begin transaction
|
32620
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32621
|
+
[1m[35m (0.1ms)[0m begin transaction
|
32622
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
32623
|
+
[1m[35mProduct Exists (0.2ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-8' LIMIT 1
|
32624
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:31:42.866547"], ["name", "Foo"], ["permalink", "foo-8"], ["price", 100], ["updated_at", "2014-11-03 21:31:42.866547"]]
|
32625
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
32626
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
32627
|
+
[1m[35mPayola::Affiliate Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_affiliates" WHERE "payola_affiliates"."code" = 'MyString' LIMIT 1
|
32628
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "payola_affiliates" ("code", "created_at", "email", "percent", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["code", "MyString"], ["created_at", "2014-11-03 21:31:42.874856"], ["email", "foo@example.com"], ["percent", 100], ["updated_at", "2014-11-03 21:31:42.874856"]]
|
32629
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
32630
|
+
[1m[36mPayola::Affiliate Load (0.2ms)[0m [1mSELECT "payola_affiliates".* FROM "payola_affiliates" WHERE "payola_affiliates"."id" = ? LIMIT 1[0m [["id", 1]]
|
32631
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
32632
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
32633
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
32634
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-9' LIMIT 1[0m
|
32635
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:31:42.882971"], ["name", "Foo"], ["permalink", "foo-9"], ["price", 100], ["updated_at", "2014-11-03 21:31:42.882971"]]
|
32636
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32637
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
32638
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
32639
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
32640
|
+
[1m[36mProduct Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-10' LIMIT 1[0m
|
32641
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:31:42.889238"], ["name", "Foo"], ["permalink", "foo-10"], ["price", 100], ["updated_at", "2014-11-03 21:31:42.889238"]]
|
32642
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32643
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
32644
|
+
[1m[36mPayola::Coupon Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_coupons" WHERE "payola_coupons"."code" = 'MyString' LIMIT 1[0m
|
32645
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "payola_coupons" ("code", "created_at", "percent_off", "updated_at") VALUES (?, ?, ?, ?) [["code", "MyString"], ["created_at", "2014-11-03 21:31:42.897159"], ["percent_off", 1], ["updated_at", "2014-11-03 21:31:42.897159"]]
|
32646
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32647
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
32648
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
32649
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
32650
|
+
[1m[36mProduct Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-11' LIMIT 1[0m
|
32651
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:31:42.904408"], ["name", "Foo"], ["permalink", "foo-11"], ["price", 100], ["updated_at", "2014-11-03 21:31:42.904408"]]
|
32652
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32653
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
32654
|
+
[1m[36mPayola::Coupon Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_coupons" WHERE "payola_coupons"."code" = 'MyString' LIMIT 1[0m
|
32655
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "payola_coupons" ("code", "created_at", "percent_off", "updated_at") VALUES (?, ?, ?, ?) [["code", "MyString"], ["created_at", "2014-11-03 21:31:42.907286"], ["percent_off", 1], ["updated_at", "2014-11-03 21:31:42.907286"]]
|
32656
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32657
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
32658
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
32659
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
32660
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
32661
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32662
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
32663
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32664
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32665
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
32666
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32667
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32668
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32669
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32670
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32671
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
32672
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32673
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32674
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
32675
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32676
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32677
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32678
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
32679
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32680
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
32681
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32682
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
32683
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
32684
|
+
[1m[36mProduct Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-12' LIMIT 1[0m
|
32685
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:31:42.947307"], ["name", "Foo"], ["permalink", "foo-12"], ["price", 100], ["updated_at", "2014-11-03 21:31:42.947307"]]
|
32686
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32687
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
32688
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
32689
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
32690
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'gii8i9' LIMIT 1[0m
|
32691
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:31:42.951595"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "gii8i9"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:31:42.951595"]]
|
32692
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32693
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32694
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'gii8i9' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
32695
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
32696
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
32697
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'gii8i9' AND "payola_sales"."id" != 1) LIMIT 1
|
32698
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "payola_sales" SET "card_expiration" = ?, "card_last4" = ?, "card_type" = ?, "fee_amount" = ?, "stripe_customer_id" = ?, "stripe_id" = ?, "updated_at" = ? WHERE "payola_sales"."id" = 1[0m [["card_expiration", "2013-12-01"], ["card_last4", "4242"], ["card_type", "Visa"], ["fee_amount", 0], ["stripe_customer_id", "test_cus_1"], ["stripe_id", "test_ch_3"], ["updated_at", "2014-11-03 21:31:42.959409"]]
|
32699
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32700
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32701
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "payola_sales" SET "state" = 'finished' WHERE "payola_sales"."id" = 1
|
32702
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32703
|
+
[1m[35mPayola::Sale Load (0.1ms)[0m SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1 [["id", 1]]
|
32704
|
+
[1m[36mPayola::Sale Load (0.0ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1[0m [["id", 1]]
|
32705
|
+
[1m[35mPayola::Sale Load (0.0ms)[0m SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1 [["id", 1]]
|
32706
|
+
[1m[36mPayola::Sale Load (0.1ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1[0m [["id", 1]]
|
32707
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
32708
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
32709
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32710
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-13' LIMIT 1[0m
|
32711
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:31:42.967731"], ["name", "Foo"], ["permalink", "foo-13"], ["price", 100], ["updated_at", "2014-11-03 21:31:42.967731"]]
|
32712
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32713
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32714
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
32715
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
32716
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'ms81bk' LIMIT 1[0m
|
32717
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:31:42.970565"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "ms81bk"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:31:42.970565"]]
|
32718
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32719
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32720
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'ms81bk' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
32721
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32722
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
32723
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'ms81bk' AND "payola_sales"."id" != 1) LIMIT 1
|
32724
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "card_expiration" = ?, "card_last4" = ?, "card_type" = ?, "fee_amount" = ?, "stripe_customer_id" = ?, "stripe_id" = ?, "updated_at" = ? WHERE "payola_sales"."id" = 1[0m [["card_expiration", "2013-12-01"], ["card_last4", "4242"], ["card_type", "Visa"], ["fee_amount", 0], ["stripe_customer_id", "test_cus_1"], ["stripe_id", "test_ch_3"], ["updated_at", "2014-11-03 21:31:42.975540"]]
|
32725
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32726
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32727
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "payola_sales" SET "state" = 'finished' WHERE "payola_sales"."id" = 1
|
32728
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32729
|
+
[1m[35mPayola::Sale Load (0.1ms)[0m SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1 [["id", 1]]
|
32730
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
32731
|
+
[1m[35m (0.1ms)[0m begin transaction
|
32732
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
32733
|
+
[1m[35mProduct Exists (0.2ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-14' LIMIT 1
|
32734
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:31:42.983423"], ["name", "Foo"], ["permalink", "foo-14"], ["price", 100], ["updated_at", "2014-11-03 21:31:42.983423"]]
|
32735
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
32736
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
32737
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
32738
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
32739
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = '675kv8' LIMIT 1
|
32740
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:31:42.988477"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "675kv8"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:31:42.988477"]]
|
32741
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
32742
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
32743
|
+
[1m[35mPayola::Sale Exists (0.2ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = '675kv8' AND "payola_sales"."id" != 1) LIMIT 1
|
32744
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32745
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
32746
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = '675kv8' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
32747
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "payola_sales" SET "card_expiration" = ?, "card_last4" = ?, "card_type" = ?, "fee_amount" = ?, "stripe_customer_id" = ?, "stripe_id" = ?, "updated_at" = ? WHERE "payola_sales"."id" = 1 [["card_expiration", "2013-12-01"], ["card_last4", "4242"], ["card_type", "Visa"], ["fee_amount", 0], ["stripe_customer_id", "test_cus_1"], ["stripe_id", "test_ch_3"], ["updated_at", "2014-11-03 21:31:42.995825"]]
|
32748
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32749
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32750
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "state" = 'finished' WHERE "payola_sales"."id" = 1[0m
|
32751
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
32752
|
+
[1m[36mPayola::Sale Load (0.1ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1[0m [["id", 1]]
|
32753
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
32754
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
32755
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
32756
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-15' LIMIT 1[0m
|
32757
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:31:43.004005"], ["name", "Foo"], ["permalink", "foo-15"], ["price", 100], ["updated_at", "2014-11-03 21:31:43.004005"]]
|
32758
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32759
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
32760
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
32761
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
32762
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'i034t9' LIMIT 1[0m
|
32763
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:31:43.008299"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "i034t9"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:31:43.008299"]]
|
32764
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32765
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
32766
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'i034t9' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
32767
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
32768
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
32769
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'i034t9' AND "payola_sales"."id" != 1) LIMIT 1
|
32770
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "error" = ?, "updated_at" = ? WHERE "payola_sales"."id" = 1[0m [["error", "The card was declined"], ["updated_at", "2014-11-03 21:31:43.014132"]]
|
32771
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
32772
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32773
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "payola_sales" SET "state" = 'errored' WHERE "payola_sales"."id" = 1
|
32774
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32775
|
+
[1m[35mPayola::Sale Load (0.1ms)[0m SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1 [["id", 1]]
|
32776
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
32777
|
+
[1m[35m (0.1ms)[0m begin transaction
|
32778
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32779
|
+
[1m[35m (0.1ms)[0m begin transaction
|
32780
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32781
|
+
[1m[35m (0.1ms)[0m begin transaction
|
32782
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32783
|
+
[1m[35m (0.1ms)[0m begin transaction
|
32784
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32785
|
+
[1m[35m (0.1ms)[0m begin transaction
|
32786
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32787
|
+
[1m[35m (0.1ms)[0m begin transaction
|
32788
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32789
|
+
[1m[35m (0.1ms)[0m begin transaction
|
32790
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-17' LIMIT 1[0m
|
32791
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32792
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32793
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-18' LIMIT 1
|
32794
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32795
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32796
|
+
[1m[36mProduct Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'f' LIMIT 1[0m
|
32797
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32798
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
32799
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
32800
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32801
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
32802
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
32803
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
32804
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
32805
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
32806
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-19' LIMIT 1[0m
|
32807
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:31:43.042380"], ["name", "Foo"], ["permalink", "foo-19"], ["price", 100], ["updated_at", "2014-11-03 21:31:43.042380"]]
|
32808
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32809
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32810
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
32811
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
32812
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'ggj70t' LIMIT 1[0m
|
32813
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:31:43.046193"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "ggj70t"], ["product_id", 1], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:31:43.046193"]]
|
32814
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32815
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32816
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "owners" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-11-03 21:31:43.051938"], ["updated_at", "2014-11-03 21:31:43.051938"]]
|
32817
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
32818
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32819
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'ggj70t' AND "payola_sales"."id" != 1) LIMIT 1
|
32820
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "payola_sales" SET "owner_id" = ?, "owner_type" = ?, "updated_at" = ? WHERE "payola_sales"."id" = 1[0m [["owner_id", 1], ["owner_type", "Owner"], ["updated_at", "2014-11-03 21:31:43.057660"]]
|
32821
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
32822
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
32823
|
+
[1m[35m (0.1ms)[0m begin transaction
|
32824
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
32825
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-20' LIMIT 1
|
32826
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:31:43.063320"], ["name", "Foo"], ["permalink", "foo-20"], ["price", 100], ["updated_at", "2014-11-03 21:31:43.063320"]]
|
32827
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32828
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32829
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
32830
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
32831
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = '6oio0n' LIMIT 1
|
32832
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:31:43.066242"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "6oio0n"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:31:43.066242"]]
|
32833
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32834
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
32835
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "payola_sales" SET "state" = 'finished' WHERE "payola_sales"."id" = 1
|
32836
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32837
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
32838
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
32839
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
32840
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-21' LIMIT 1[0m
|
32841
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:31:43.073383"], ["name", "Foo"], ["permalink", "foo-21"], ["price", 100], ["updated_at", "2014-11-03 21:31:43.073383"]]
|
32842
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32843
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32844
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
32845
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
32846
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = '7680r7' LIMIT 1[0m
|
32847
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:31:43.076272"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "7680r7"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:31:43.076272"]]
|
32848
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32849
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
32850
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "state" = 'errored' WHERE "payola_sales"."id" = 1[0m
|
32851
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32852
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
32853
|
+
[1m[35m (0.1ms)[0m begin transaction
|
32854
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
32855
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-22' LIMIT 1
|
32856
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:31:43.082903"], ["name", "Foo"], ["permalink", "foo-22"], ["price", 100], ["updated_at", "2014-11-03 21:31:43.082903"]]
|
32857
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32858
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
32859
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
32860
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32861
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32862
|
+
[1m[36mProduct Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-23' LIMIT 1[0m
|
32863
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:31:43.089072"], ["name", "Foo"], ["permalink", "foo-23"], ["price", 100], ["updated_at", "2014-11-03 21:31:43.089072"]]
|
32864
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32865
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
32866
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
32867
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32868
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
32869
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32870
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32871
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
32872
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-24' LIMIT 1[0m
|
32873
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:31:43.098283"], ["name", "Foo"], ["permalink", "foo-24"], ["price", 100], ["updated_at", "2014-11-03 21:31:43.098283"]]
|
32874
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32875
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
32876
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
32877
|
+
[1m[35m (0.1ms)[0m begin transaction
|
32878
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
32879
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-25' LIMIT 1
|
32880
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:31:43.104035"], ["name", "Foo"], ["permalink", "foo-25"], ["price", 100], ["updated_at", "2014-11-03 21:31:43.104035"]]
|
32881
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32882
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32883
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
32884
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
32885
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'b9kfg2' LIMIT 1
|
32886
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:31:43.107251"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "b9kfg2"], ["product_id", 1], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:31:43.107251"]]
|
32887
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32888
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32889
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'b9kfg2' AND "payola_sales"."id" != 1) LIMIT 1
|
32890
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "signed_custom_fields" = ?, "updated_at" = ? WHERE "payola_sales"."id" = 1[0m [["signed_custom_fields", "BAh7BkkiCmZpZWxkBjoGRUZJIgp2YWx1ZQY7AEY=--5d721d50404afc54672ec88747e606e4226813b1fdb826dff62844c014ca61fc"], ["updated_at", "2014-11-03 21:31:43.109633"]]
|
32891
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
32892
|
+
[1m[36mPayola::Sale Load (0.1ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1[0m [["id", 1]]
|
32893
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
32894
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
32895
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
32896
|
+
[1m[36mProduct Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-26' LIMIT 1[0m
|
32897
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:31:43.116730"], ["name", "Foo"], ["permalink", "foo-26"], ["price", 100], ["updated_at", "2014-11-03 21:31:43.116730"]]
|
32898
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32899
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32900
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
32901
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
32902
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'i7l8cc' LIMIT 1[0m
|
32903
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:31:43.120874"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "i7l8cc"], ["product_id", 1], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:31:43.120874"]]
|
32904
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32905
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'i7l8cc' AND "payola_sales"."id" != 1) LIMIT 1
|
32906
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
32907
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-27' LIMIT 1
|
32908
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:31:43.126361"], ["name", "Foo"], ["permalink", "foo-27"], ["price", 100], ["updated_at", "2014-11-03 21:31:43.126361"]]
|
32909
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
32910
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'i7l8cc' LIMIT 1[0m
|
32911
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
32912
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
32913
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
32914
|
+
[1m[36mProduct Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-28' LIMIT 1[0m
|
32915
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:31:43.134745"], ["name", "Foo"], ["permalink", "foo-28"], ["price", 100], ["updated_at", "2014-11-03 21:31:43.134745"]]
|
32916
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32917
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32918
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
32919
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
32920
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = '9a9h6i' LIMIT 1[0m
|
32921
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:31:43.138681"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "9a9h6i"], ["product_id", 1], ["product_type", "Product"], ["state", "finished"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:31:43.138681"]]
|
32922
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32923
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
32924
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "state" = 'refunded' WHERE "payola_sales"."id" = 1[0m
|
32925
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32926
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
32927
|
+
[1m[35m (0.1ms)[0m begin transaction
|
32928
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
32929
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-29' LIMIT 1
|
32930
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:31:43.146768"], ["name", "Foo"], ["permalink", "foo-29"], ["price", 100], ["updated_at", "2014-11-03 21:31:43.146768"]]
|
32931
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32932
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32933
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
32934
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
32935
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'qt7itq' LIMIT 1
|
32936
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:31:43.150600"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "qt7itq"], ["product_id", 1], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:31:43.150600"]]
|
32937
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
32938
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32939
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "payola_sales" SET "state" = 'processing' WHERE "payola_sales"."id" = 1
|
32940
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32941
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
32942
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
32943
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32944
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
32945
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32946
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
32947
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32948
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
32949
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
32950
|
+
[1m[36m (3.1ms)[0m [1mCREATE TABLE "owners" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
32951
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "payola_affiliates" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar(255), "email" varchar(255), "percent" integer, "created_at" datetime, "updated_at" datetime)
|
32952
|
+
[1m[36m (0.7ms)[0m [1mCREATE TABLE "payola_coupons" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar(255), "percent_off" integer, "created_at" datetime, "updated_at" datetime) [0m
|
32953
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "payola_sales" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255), "guid" varchar(255), "product_id" integer, "product_type" varchar(255), "created_at" datetime, "updated_at" datetime, "state" varchar(255), "stripe_id" varchar(255), "stripe_token" varchar(255), "card_last4" varchar(255), "card_expiration" date, "card_type" varchar(255), "error" text, "amount" integer, "fee_amount" integer, "coupon_id" integer, "opt_in" boolean, "download_count" integer, "affiliate_id" integer, "customer_address" text, "business_address" text, "stripe_customer_id" varchar(255), "currency" varchar(255), "signed_custom_fields" text, "owner_id" integer, "owner_type" varchar(255))
|
32954
|
+
[1m[36m (0.2ms)[0m [1mselect sqlite_version(*)[0m
|
32955
|
+
[1m[35m (1.2ms)[0m CREATE INDEX "index_payola_sales_on_coupon_id" ON "payola_sales" ("coupon_id")
|
32956
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
32957
|
+
FROM sqlite_master
|
32958
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
32959
|
+
UNION ALL
|
32960
|
+
SELECT sql
|
32961
|
+
FROM sqlite_temp_master
|
32962
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
32963
|
+
[0m
|
32964
|
+
[1m[35m (0.7ms)[0m CREATE INDEX "index_payola_sales_on_email" ON "payola_sales" ("email")
|
32965
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
32966
|
+
FROM sqlite_master
|
32967
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
32968
|
+
UNION ALL
|
32969
|
+
SELECT sql
|
32970
|
+
FROM sqlite_temp_master
|
32971
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
32972
|
+
[0m
|
32973
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
32974
|
+
FROM sqlite_master
|
32975
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
32976
|
+
UNION ALL
|
32977
|
+
SELECT sql
|
32978
|
+
FROM sqlite_temp_master
|
32979
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
32980
|
+
|
32981
|
+
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_payola_sales_on_guid" ON "payola_sales" ("guid")[0m
|
32982
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
32983
|
+
FROM sqlite_master
|
32984
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
32985
|
+
UNION ALL
|
32986
|
+
SELECT sql
|
32987
|
+
FROM sqlite_temp_master
|
32988
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
32989
|
+
|
32990
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
32991
|
+
FROM sqlite_master
|
32992
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
32993
|
+
UNION ALL
|
32994
|
+
SELECT sql
|
32995
|
+
FROM sqlite_temp_master
|
32996
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
32997
|
+
[0m
|
32998
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
32999
|
+
FROM sqlite_master
|
33000
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
33001
|
+
UNION ALL
|
33002
|
+
SELECT sql
|
33003
|
+
FROM sqlite_temp_master
|
33004
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
33005
|
+
|
33006
|
+
[1m[36m (1.0ms)[0m [1mCREATE INDEX "index_payola_sales_on_owner_id_and_owner_type" ON "payola_sales" ("owner_id", "owner_type")[0m
|
33007
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
33008
|
+
FROM sqlite_master
|
33009
|
+
WHERE name='index_payola_sales_on_owner_id_and_owner_type' AND type='index'
|
33010
|
+
UNION ALL
|
33011
|
+
SELECT sql
|
33012
|
+
FROM sqlite_temp_master
|
33013
|
+
WHERE name='index_payola_sales_on_owner_id_and_owner_type' AND type='index'
|
33014
|
+
|
33015
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
33016
|
+
FROM sqlite_master
|
33017
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
33018
|
+
UNION ALL
|
33019
|
+
SELECT sql
|
33020
|
+
FROM sqlite_temp_master
|
33021
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
33022
|
+
[0m
|
33023
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
33024
|
+
FROM sqlite_master
|
33025
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
33026
|
+
UNION ALL
|
33027
|
+
SELECT sql
|
33028
|
+
FROM sqlite_temp_master
|
33029
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
33030
|
+
|
33031
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
33032
|
+
FROM sqlite_master
|
33033
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
33034
|
+
UNION ALL
|
33035
|
+
SELECT sql
|
33036
|
+
FROM sqlite_temp_master
|
33037
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
33038
|
+
[0m
|
33039
|
+
[1m[35m (0.9ms)[0m CREATE INDEX "index_payola_sales_on_product" ON "payola_sales" ("product_id", "product_type")
|
33040
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
33041
|
+
FROM sqlite_master
|
33042
|
+
WHERE name='index_payola_sales_on_product' AND type='index'
|
33043
|
+
UNION ALL
|
33044
|
+
SELECT sql
|
33045
|
+
FROM sqlite_temp_master
|
33046
|
+
WHERE name='index_payola_sales_on_product' AND type='index'
|
33047
|
+
[0m
|
33048
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
33049
|
+
FROM sqlite_master
|
33050
|
+
WHERE name='index_payola_sales_on_owner_id_and_owner_type' AND type='index'
|
33051
|
+
UNION ALL
|
33052
|
+
SELECT sql
|
33053
|
+
FROM sqlite_temp_master
|
33054
|
+
WHERE name='index_payola_sales_on_owner_id_and_owner_type' AND type='index'
|
33055
|
+
|
33056
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
33057
|
+
FROM sqlite_master
|
33058
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
33059
|
+
UNION ALL
|
33060
|
+
SELECT sql
|
33061
|
+
FROM sqlite_temp_master
|
33062
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
33063
|
+
[0m
|
33064
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
33065
|
+
FROM sqlite_master
|
33066
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
33067
|
+
UNION ALL
|
33068
|
+
SELECT sql
|
33069
|
+
FROM sqlite_temp_master
|
33070
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
33071
|
+
|
33072
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
33073
|
+
FROM sqlite_master
|
33074
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
33075
|
+
UNION ALL
|
33076
|
+
SELECT sql
|
33077
|
+
FROM sqlite_temp_master
|
33078
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
33079
|
+
[0m
|
33080
|
+
[1m[35m (0.9ms)[0m CREATE INDEX "index_payola_sales_on_stripe_customer_id" ON "payola_sales" ("stripe_customer_id")
|
33081
|
+
[1m[36m (0.9ms)[0m [1mCREATE TABLE "payola_stripe_webhooks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "stripe_id" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
33082
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "permalink" varchar(255), "price" integer, "created_at" datetime, "updated_at" datetime)
|
33083
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
33084
|
+
[1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
33085
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
33086
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141029140518')
|
33087
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141001230848')[0m
|
33088
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141001170138')
|
33089
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141001203541')[0m
|
33090
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141002013618')
|
33091
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141002013701')[0m
|
33092
|
+
[1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141002203725')
|
33093
|
+
[1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141017233304')[0m
|
33094
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141026101628')
|
33095
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141026144800')[0m
|
33096
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141029135848')
|
33097
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
33098
|
+
[1m[35m (0.1ms)[0m begin transaction
|
33099
|
+
[1m[36mPayola::StripeWebhook Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_stripe_webhooks" WHERE "payola_stripe_webhooks"."stripe_id" = 'test_id' LIMIT 1[0m
|
33100
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
33101
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
33102
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
33103
|
+
[1m[36mPayola::StripeWebhook Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_stripe_webhooks" WHERE "payola_stripe_webhooks"."stripe_id" = 'test_id' LIMIT 1[0m
|
33104
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "payola_stripe_webhooks" ("created_at", "stripe_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-03 21:32:19.422864"], ["stripe_id", "test_id"], ["updated_at", "2014-11-03 21:32:19.422864"]]
|
33105
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33106
|
+
[1m[35mPayola::StripeWebhook Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_stripe_webhooks" WHERE "payola_stripe_webhooks"."stripe_id" = 'test_id' LIMIT 1
|
33107
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
33108
|
+
[1m[35m (0.1ms)[0m begin transaction
|
33109
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33110
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33111
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33112
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33113
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33114
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33115
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33116
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33117
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33118
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33119
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-1' LIMIT 1[0m
|
33120
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
33121
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33122
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-2' LIMIT 1
|
33123
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33124
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33125
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'f' LIMIT 1[0m
|
33126
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
33127
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33128
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
33129
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33130
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
33131
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33132
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
33133
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
33134
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
33135
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33136
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
33137
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33138
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
33139
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33140
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
33141
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33142
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
33143
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33144
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
33145
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33146
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
33147
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33148
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
33149
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33150
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
33151
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33152
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
33153
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33154
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
33155
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
33156
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
33157
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-4' LIMIT 1[0m
|
33158
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:32:19.539623"], ["name", "Foo"], ["permalink", "foo-4"], ["price", 100], ["updated_at", "2014-11-03 21:32:19.539623"]]
|
33159
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33160
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
33161
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
33162
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33163
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-5' LIMIT 1[0m
|
33164
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:32:19.575034"], ["name", "Foo"], ["permalink", "foo-5"], ["price", 100], ["updated_at", "2014-11-03 21:32:19.575034"]]
|
33165
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33166
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
33167
|
+
[1m[36mPayola::Affiliate Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_affiliates" WHERE "payola_affiliates"."code" = 'MyString' LIMIT 1[0m
|
33168
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "payola_affiliates" ("code", "created_at", "email", "percent", "updated_at") VALUES (?, ?, ?, ?, ?) [["code", "MyString"], ["created_at", "2014-11-03 21:32:19.583605"], ["email", "foo@example.com"], ["percent", 100], ["updated_at", "2014-11-03 21:32:19.583605"]]
|
33169
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33170
|
+
[1m[35mPayola::Affiliate Load (0.1ms)[0m SELECT "payola_affiliates".* FROM "payola_affiliates" WHERE "payola_affiliates"."id" = ? LIMIT 1 [["id", 1]]
|
33171
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
33172
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33173
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33174
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-6' LIMIT 1
|
33175
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:32:19.593436"], ["name", "Foo"], ["permalink", "foo-6"], ["price", 100], ["updated_at", "2014-11-03 21:32:19.593436"]]
|
33176
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33177
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
33178
|
+
[1m[35mPayola::Coupon Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_coupons" WHERE "payola_coupons"."code" = 'MyString' LIMIT 1
|
33179
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "payola_coupons" ("code", "created_at", "percent_off", "updated_at") VALUES (?, ?, ?, ?)[0m [["code", "MyString"], ["created_at", "2014-11-03 21:32:19.602622"], ["percent_off", 1], ["updated_at", "2014-11-03 21:32:19.602622"]]
|
33180
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33181
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
33182
|
+
[1m[35m (0.1ms)[0m begin transaction
|
33183
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33184
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-7' LIMIT 1
|
33185
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:32:19.608984"], ["name", "Foo"], ["permalink", "foo-7"], ["price", 100], ["updated_at", "2014-11-03 21:32:19.608984"]]
|
33186
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
33187
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33188
|
+
[1m[35mPayola::Coupon Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_coupons" WHERE "payola_coupons"."code" = 'MyString' LIMIT 1
|
33189
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "payola_coupons" ("code", "created_at", "percent_off", "updated_at") VALUES (?, ?, ?, ?)[0m [["code", "MyString"], ["created_at", "2014-11-03 21:32:19.611503"], ["percent_off", 1], ["updated_at", "2014-11-03 21:32:19.611503"]]
|
33190
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33191
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
33192
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33193
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33194
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33195
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33196
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-8' LIMIT 1
|
33197
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:32:19.622393"], ["name", "Foo"], ["permalink", "foo-8"], ["price", 100], ["updated_at", "2014-11-03 21:32:19.622393"]]
|
33198
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33199
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33200
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
33201
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
33202
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'ckgc0h' LIMIT 1
|
33203
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:32:19.625657"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "ckgc0h"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:32:19.625657"]]
|
33204
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33205
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33206
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'ckgc0h' AND "payola_sales"."id" != 1) LIMIT 1
|
33207
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33208
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33209
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'ckgc0h' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
33210
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "payola_sales" SET "card_expiration" = ?, "card_last4" = ?, "card_type" = ?, "fee_amount" = ?, "stripe_customer_id" = ?, "stripe_id" = ?, "updated_at" = ? WHERE "payola_sales"."id" = 1 [["card_expiration", "2013-12-01"], ["card_last4", "4242"], ["card_type", "Visa"], ["fee_amount", 0], ["stripe_customer_id", "test_cus_1"], ["stripe_id", "test_ch_3"], ["updated_at", "2014-11-03 21:32:19.674915"]]
|
33211
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33212
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33213
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "state" = 'finished' WHERE "payola_sales"."id" = 1[0m
|
33214
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33215
|
+
[1m[36mPayola::Sale Load (0.2ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1[0m [["id", 1]]
|
33216
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
33217
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
33218
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33219
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-9' LIMIT 1[0m
|
33220
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:32:19.687875"], ["name", "Foo"], ["permalink", "foo-9"], ["price", 100], ["updated_at", "2014-11-03 21:32:19.687875"]]
|
33221
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33222
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33223
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
33224
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
33225
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'k7mfsf' LIMIT 1[0m
|
33226
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:32:19.690589"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "k7mfsf"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:32:19.690589"]]
|
33227
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33228
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33229
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'k7mfsf' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
33230
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33231
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33232
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'k7mfsf' AND "payola_sales"."id" != 1) LIMIT 1
|
33233
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "card_expiration" = ?, "card_last4" = ?, "card_type" = ?, "fee_amount" = ?, "stripe_customer_id" = ?, "stripe_id" = ?, "updated_at" = ? WHERE "payola_sales"."id" = 1[0m [["card_expiration", "2013-12-01"], ["card_last4", "4242"], ["card_type", "Visa"], ["fee_amount", 0], ["stripe_customer_id", "test_cus_1"], ["stripe_id", "test_ch_3"], ["updated_at", "2014-11-03 21:32:19.694487"]]
|
33234
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33235
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33236
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "payola_sales" SET "state" = 'finished' WHERE "payola_sales"."id" = 1
|
33237
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33238
|
+
[1m[35mPayola::Sale Load (0.0ms)[0m SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1 [["id", 1]]
|
33239
|
+
[1m[36mPayola::Sale Load (0.0ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1[0m [["id", 1]]
|
33240
|
+
[1m[35mPayola::Sale Load (0.0ms)[0m SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1 [["id", 1]]
|
33241
|
+
[1m[36mPayola::Sale Load (0.0ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1[0m [["id", 1]]
|
33242
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
33243
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33244
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33245
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-10' LIMIT 1[0m
|
33246
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:32:19.701081"], ["name", "Foo"], ["permalink", "foo-10"], ["price", 100], ["updated_at", "2014-11-03 21:32:19.701081"]]
|
33247
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33248
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33249
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
33250
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
33251
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'fl8lja' LIMIT 1[0m
|
33252
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:32:19.703840"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "fl8lja"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:32:19.703840"]]
|
33253
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33254
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33255
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'fl8lja' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
33256
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33257
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33258
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'fl8lja' AND "payola_sales"."id" != 1) LIMIT 1
|
33259
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "card_expiration" = ?, "card_last4" = ?, "card_type" = ?, "fee_amount" = ?, "stripe_customer_id" = ?, "stripe_id" = ?, "updated_at" = ? WHERE "payola_sales"."id" = 1[0m [["card_expiration", "2013-12-01"], ["card_last4", "4242"], ["card_type", "Visa"], ["fee_amount", 0], ["stripe_customer_id", "test_cus_1"], ["stripe_id", "test_ch_3"], ["updated_at", "2014-11-03 21:32:19.707593"]]
|
33260
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33261
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33262
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "payola_sales" SET "state" = 'finished' WHERE "payola_sales"."id" = 1
|
33263
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33264
|
+
[1m[35mPayola::Sale Load (0.1ms)[0m SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1 [["id", 1]]
|
33265
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
33266
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33267
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33268
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-11' LIMIT 1
|
33269
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:32:19.714902"], ["name", "Foo"], ["permalink", "foo-11"], ["price", 100], ["updated_at", "2014-11-03 21:32:19.714902"]]
|
33270
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33271
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33272
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
33273
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
33274
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'lf92hq' LIMIT 1
|
33275
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:32:19.717557"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "lf92hq"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:32:19.717557"]]
|
33276
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33277
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33278
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'lf92hq' AND "payola_sales"."id" != 1) LIMIT 1
|
33279
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33280
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33281
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'lf92hq' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
33282
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "payola_sales" SET "error" = ?, "updated_at" = ? WHERE "payola_sales"."id" = 1 [["error", "The card was declined"], ["updated_at", "2014-11-03 21:32:19.721063"]]
|
33283
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33284
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33285
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "state" = 'errored' WHERE "payola_sales"."id" = 1[0m
|
33286
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33287
|
+
[1m[36mPayola::Sale Load (0.1ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1[0m [["id", 1]]
|
33288
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
33289
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
33290
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
33291
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-12' LIMIT 1[0m
|
33292
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:32:19.728946"], ["name", "Foo"], ["permalink", "foo-12"], ["price", 100], ["updated_at", "2014-11-03 21:32:19.728946"]]
|
33293
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33294
|
+
Processing by Payola::TransactionsController#create as HTML
|
33295
|
+
Parameters: {"product_class"=>"product", "permalink"=>"foo-12"}
|
33296
|
+
[1m[35mProduct Load (0.1ms)[0m SELECT "products".* FROM "products" WHERE "products"."permalink" = 'foo-12' LIMIT 1
|
33297
|
+
[1m[36mPayola::Coupon Load (0.1ms)[0m [1mSELECT "payola_coupons".* FROM "payola_coupons" WHERE (lower(code) = lower(NULL)) ORDER BY "payola_coupons"."id" ASC LIMIT 1[0m
|
33298
|
+
[1m[35mPayola::Affiliate Load (0.1ms)[0m SELECT "payola_affiliates".* FROM "payola_affiliates" WHERE (lower(code) = lower(NULL)) ORDER BY "payola_affiliates"."id" ASC LIMIT 1
|
33299
|
+
Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.3ms)
|
33300
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
33301
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33302
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33303
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-13' LIMIT 1
|
33304
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:32:19.743791"], ["name", "Foo"], ["permalink", "foo-13"], ["price", 100], ["updated_at", "2014-11-03 21:32:19.743791"]]
|
33305
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33306
|
+
Processing by Payola::TransactionsController#create as HTML
|
33307
|
+
Parameters: {"product_class"=>"product", "permalink"=>"foo-13"}
|
33308
|
+
[1m[36mProduct Load (0.1ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."permalink" = 'foo-13' LIMIT 1[0m
|
33309
|
+
[1m[35mPayola::Coupon Load (0.1ms)[0m SELECT "payola_coupons".* FROM "payola_coupons" WHERE (lower(code) = lower(NULL)) ORDER BY "payola_coupons"."id" ASC LIMIT 1
|
33310
|
+
[1m[36mPayola::Affiliate Load (0.1ms)[0m [1mSELECT "payola_affiliates".* FROM "payola_affiliates" WHERE (lower(code) = lower(NULL)) ORDER BY "payola_affiliates"."id" ASC LIMIT 1[0m
|
33311
|
+
Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
|
33312
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
33313
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
33314
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
33315
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-14' LIMIT 1[0m
|
33316
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:32:19.752765"], ["name", "Foo"], ["permalink", "foo-14"], ["price", 100], ["updated_at", "2014-11-03 21:32:19.752765"]]
|
33317
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33318
|
+
Processing by Payola::TransactionsController#status as HTML
|
33319
|
+
Parameters: {"guid"=>"doesnotexist"}
|
33320
|
+
[1m[35mPayola::Sale Load (0.1ms)[0m SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."guid" = 'doesnotexist' ORDER BY "payola_sales"."id" ASC LIMIT 1
|
33321
|
+
Completed 404 Not Found in 7ms (Views: 6.0ms | ActiveRecord: 0.1ms)
|
33322
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
33323
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33324
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
33325
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-15' LIMIT 1
|
33326
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:32:19.765483"], ["name", "Foo"], ["permalink", "foo-15"], ["price", 100], ["updated_at", "2014-11-03 21:32:19.765483"]]
|
33327
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33328
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33329
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-16' LIMIT 1
|
33330
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:32:19.767601"], ["name", "Foo"], ["permalink", "foo-16"], ["price", 100], ["updated_at", "2014-11-03 21:32:19.767601"]]
|
33331
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33332
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33333
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
33334
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
33335
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = '22dg13' LIMIT 1
|
33336
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:32:19.770081"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "22dg13"], ["product_id", 2], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:32:19.770081"]]
|
33337
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33338
|
+
Processing by Payola::TransactionsController#status as HTML
|
33339
|
+
Parameters: {"guid"=>"22dg13"}
|
33340
|
+
[1m[36mPayola::Sale Load (0.1ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."guid" = '22dg13' ORDER BY "payola_sales"."id" ASC LIMIT 1[0m
|
33341
|
+
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
33342
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
33343
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33344
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33345
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-17' LIMIT 1[0m
|
33346
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:32:19.776744"], ["name", "Foo"], ["permalink", "foo-17"], ["price", 100], ["updated_at", "2014-11-03 21:32:19.776744"]]
|
33347
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33348
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33349
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-18' LIMIT 1[0m
|
33350
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:32:19.779273"], ["name", "Foo"], ["permalink", "foo-18"], ["price", 100], ["updated_at", "2014-11-03 21:32:19.779273"]]
|
33351
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33352
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33353
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
33354
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
33355
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = '7ono1u' LIMIT 1[0m
|
33356
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:32:19.781852"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "7ono1u"], ["product_id", 2], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:32:19.781852"]]
|
33357
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33358
|
+
Processing by Payola::TransactionsController#show as HTML
|
33359
|
+
Parameters: {"guid"=>"7ono1u"}
|
33360
|
+
[1m[35mPayola::Sale Load (0.1ms)[0m SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."guid" = '7ono1u' LIMIT 1
|
33361
|
+
[1m[36mProduct Load (0.1ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1[0m [["id", 2]]
|
33362
|
+
Redirected to http://test.host/
|
33363
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
|
33364
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
33365
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
33366
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
33367
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
33368
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
33369
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
33370
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
33371
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
33372
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
33373
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
33374
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
33375
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
33376
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
33377
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
33378
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
33379
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33380
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
33381
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33382
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33383
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-19' LIMIT 1[0m
|
33384
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:32:19.808565"], ["name", "Foo"], ["permalink", "foo-19"], ["price", 100], ["updated_at", "2014-11-03 21:32:19.808565"]]
|
33385
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33386
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33387
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
33388
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
33389
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'et9uvb' LIMIT 1[0m
|
33390
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:32:19.811204"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "et9uvb"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:32:19.811204"]]
|
33391
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33392
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33393
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "state" = 'errored' WHERE "payola_sales"."id" = 1[0m
|
33394
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33395
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
33396
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33397
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33398
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-20' LIMIT 1
|
33399
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:32:19.817112"], ["name", "Foo"], ["permalink", "foo-20"], ["price", 100], ["updated_at", "2014-11-03 21:32:19.817112"]]
|
33400
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33401
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33402
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
33403
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
33404
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'jkr6pq' LIMIT 1
|
33405
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:32:19.819681"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "jkr6pq"], ["product_id", 1], ["product_type", "Product"], ["state", "finished"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:32:19.819681"]]
|
33406
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33407
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
33408
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "payola_sales" SET "state" = 'refunded' WHERE "payola_sales"."id" = 1
|
33409
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33410
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
33411
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33412
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33413
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-21' LIMIT 1[0m
|
33414
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:32:19.825966"], ["name", "Foo"], ["permalink", "foo-21"], ["price", 100], ["updated_at", "2014-11-03 21:32:19.825966"]]
|
33415
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33416
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33417
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
33418
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
33419
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = '1qkrli' LIMIT 1[0m
|
33420
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:32:19.828652"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "1qkrli"], ["product_id", 1], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:32:19.828652"]]
|
33421
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33422
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33423
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "owners" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-11-03 21:32:19.832496"], ["updated_at", "2014-11-03 21:32:19.832496"]]
|
33424
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33425
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33426
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = '1qkrli' AND "payola_sales"."id" != 1) LIMIT 1
|
33427
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "owner_id" = ?, "owner_type" = ?, "updated_at" = ? WHERE "payola_sales"."id" = 1[0m [["owner_id", 1], ["owner_type", "Owner"], ["updated_at", "2014-11-03 21:32:19.836616"]]
|
33428
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33429
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
33430
|
+
[1m[35m (0.1ms)[0m begin transaction
|
33431
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33432
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-22' LIMIT 1
|
33433
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:32:19.840842"], ["name", "Foo"], ["permalink", "foo-22"], ["price", 100], ["updated_at", "2014-11-03 21:32:19.840842"]]
|
33434
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33435
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
33436
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
33437
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
33438
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
33439
|
+
[1m[36mProduct Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-23' LIMIT 1[0m
|
33440
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:32:19.847213"], ["name", "Foo"], ["permalink", "foo-23"], ["price", 100], ["updated_at", "2014-11-03 21:32:19.847213"]]
|
33441
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33442
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
33443
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
33444
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33445
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
33446
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
33447
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33448
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33449
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-24' LIMIT 1[0m
|
33450
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:32:19.857068"], ["name", "Foo"], ["permalink", "foo-24"], ["price", 100], ["updated_at", "2014-11-03 21:32:19.857068"]]
|
33451
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33452
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
33453
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
33454
|
+
[1m[35m (0.1ms)[0m begin transaction
|
33455
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
33456
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-25' LIMIT 1
|
33457
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:32:19.863856"], ["name", "Foo"], ["permalink", "foo-25"], ["price", 100], ["updated_at", "2014-11-03 21:32:19.863856"]]
|
33458
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33459
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33460
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
33461
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
33462
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'iitud1' LIMIT 1
|
33463
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:32:19.867135"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "iitud1"], ["product_id", 1], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:32:19.867135"]]
|
33464
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33465
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'iitud1' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
33466
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
33467
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-26' LIMIT 1[0m
|
33468
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:32:19.876040"], ["name", "Foo"], ["permalink", "foo-26"], ["price", 100], ["updated_at", "2014-11-03 21:32:19.876040"]]
|
33469
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33470
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'iitud1' LIMIT 1
|
33471
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
33472
|
+
[1m[35m (0.1ms)[0m begin transaction
|
33473
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33474
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-27' LIMIT 1
|
33475
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:32:19.930289"], ["name", "Foo"], ["permalink", "foo-27"], ["price", 100], ["updated_at", "2014-11-03 21:32:19.930289"]]
|
33476
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33477
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33478
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
33479
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
33480
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = '60amri' LIMIT 1
|
33481
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:32:19.933121"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "60amri"], ["product_id", 1], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:32:19.933121"]]
|
33482
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33483
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33484
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "payola_sales" SET "state" = 'processing' WHERE "payola_sales"."id" = 1
|
33485
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33486
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
33487
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33488
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
33489
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-28' LIMIT 1[0m
|
33490
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:32:19.938804"], ["name", "Foo"], ["permalink", "foo-28"], ["price", 100], ["updated_at", "2014-11-03 21:32:19.938804"]]
|
33491
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33492
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33493
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
33494
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
33495
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'n6mfl5' LIMIT 1[0m
|
33496
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:32:19.941459"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "n6mfl5"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:32:19.941459"]]
|
33497
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33498
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33499
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "state" = 'finished' WHERE "payola_sales"."id" = 1[0m
|
33500
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33501
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
33502
|
+
[1m[35m (0.1ms)[0m begin transaction
|
33503
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33504
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-29' LIMIT 1
|
33505
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:32:19.947209"], ["name", "Foo"], ["permalink", "foo-29"], ["price", 100], ["updated_at", "2014-11-03 21:32:19.947209"]]
|
33506
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33507
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33508
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
33509
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
33510
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'lb9c4o' LIMIT 1
|
33511
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:32:19.949833"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "lb9c4o"], ["product_id", 1], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:32:19.949833"]]
|
33512
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
33513
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
33514
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'lb9c4o' AND "payola_sales"."id" != 1) LIMIT 1
|
33515
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "signed_custom_fields" = ?, "updated_at" = ? WHERE "payola_sales"."id" = 1[0m [["signed_custom_fields", "BAh7BkkiCmZpZWxkBjoGRUZJIgp2YWx1ZQY7AEY=--5d721d50404afc54672ec88747e606e4226813b1fdb826dff62844c014ca61fc"], ["updated_at", "2014-11-03 21:32:19.953245"]]
|
33516
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
33517
|
+
[1m[36mPayola::Sale Load (0.0ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1[0m [["id", 1]]
|
33518
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
33519
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "owners" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
33520
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "payola_affiliates" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar(255), "email" varchar(255), "percent" integer, "created_at" datetime, "updated_at" datetime)
|
33521
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "payola_coupons" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar(255), "percent_off" integer, "created_at" datetime, "updated_at" datetime) [0m
|
33522
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "payola_sales" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255), "guid" varchar(255), "product_id" integer, "product_type" varchar(255), "created_at" datetime, "updated_at" datetime, "state" varchar(255), "stripe_id" varchar(255), "stripe_token" varchar(255), "card_last4" varchar(255), "card_expiration" date, "card_type" varchar(255), "error" text, "amount" integer, "fee_amount" integer, "coupon_id" integer, "opt_in" boolean, "download_count" integer, "affiliate_id" integer, "customer_address" text, "business_address" text, "stripe_customer_id" varchar(255), "currency" varchar(255), "signed_custom_fields" text, "owner_id" integer, "owner_type" varchar(255))
|
33523
|
+
[1m[36m (0.2ms)[0m [1mselect sqlite_version(*)[0m
|
33524
|
+
[1m[35m (1.0ms)[0m CREATE INDEX "index_payola_sales_on_coupon_id" ON "payola_sales" ("coupon_id")
|
33525
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
33526
|
+
FROM sqlite_master
|
33527
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
33528
|
+
UNION ALL
|
33529
|
+
SELECT sql
|
33530
|
+
FROM sqlite_temp_master
|
33531
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
33532
|
+
[0m
|
33533
|
+
[1m[35m (0.8ms)[0m CREATE INDEX "index_payola_sales_on_email" ON "payola_sales" ("email")
|
33534
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
33535
|
+
FROM sqlite_master
|
33536
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
33537
|
+
UNION ALL
|
33538
|
+
SELECT sql
|
33539
|
+
FROM sqlite_temp_master
|
33540
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
33541
|
+
[0m
|
33542
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
33543
|
+
FROM sqlite_master
|
33544
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
33545
|
+
UNION ALL
|
33546
|
+
SELECT sql
|
33547
|
+
FROM sqlite_temp_master
|
33548
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
33549
|
+
|
33550
|
+
[1m[36m (0.7ms)[0m [1mCREATE INDEX "index_payola_sales_on_guid" ON "payola_sales" ("guid")[0m
|
33551
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
33552
|
+
FROM sqlite_master
|
33553
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
33554
|
+
UNION ALL
|
33555
|
+
SELECT sql
|
33556
|
+
FROM sqlite_temp_master
|
33557
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
33558
|
+
|
33559
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
33560
|
+
FROM sqlite_master
|
33561
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
33562
|
+
UNION ALL
|
33563
|
+
SELECT sql
|
33564
|
+
FROM sqlite_temp_master
|
33565
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
33566
|
+
[0m
|
33567
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
33568
|
+
FROM sqlite_master
|
33569
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
33570
|
+
UNION ALL
|
33571
|
+
SELECT sql
|
33572
|
+
FROM sqlite_temp_master
|
33573
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
33574
|
+
|
33575
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_payola_sales_on_owner_id_and_owner_type" ON "payola_sales" ("owner_id", "owner_type")[0m
|
33576
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
33577
|
+
FROM sqlite_master
|
33578
|
+
WHERE name='index_payola_sales_on_owner_id_and_owner_type' AND type='index'
|
33579
|
+
UNION ALL
|
33580
|
+
SELECT sql
|
33581
|
+
FROM sqlite_temp_master
|
33582
|
+
WHERE name='index_payola_sales_on_owner_id_and_owner_type' AND type='index'
|
33583
|
+
|
33584
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
33585
|
+
FROM sqlite_master
|
33586
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
33587
|
+
UNION ALL
|
33588
|
+
SELECT sql
|
33589
|
+
FROM sqlite_temp_master
|
33590
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
33591
|
+
[0m
|
33592
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
33593
|
+
FROM sqlite_master
|
33594
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
33595
|
+
UNION ALL
|
33596
|
+
SELECT sql
|
33597
|
+
FROM sqlite_temp_master
|
33598
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
33599
|
+
|
33600
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
33601
|
+
FROM sqlite_master
|
33602
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
33603
|
+
UNION ALL
|
33604
|
+
SELECT sql
|
33605
|
+
FROM sqlite_temp_master
|
33606
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
33607
|
+
[0m
|
33608
|
+
[1m[35m (0.9ms)[0m CREATE INDEX "index_payola_sales_on_product" ON "payola_sales" ("product_id", "product_type")
|
33609
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
33610
|
+
FROM sqlite_master
|
33611
|
+
WHERE name='index_payola_sales_on_product' AND type='index'
|
33612
|
+
UNION ALL
|
33613
|
+
SELECT sql
|
33614
|
+
FROM sqlite_temp_master
|
33615
|
+
WHERE name='index_payola_sales_on_product' AND type='index'
|
33616
|
+
[0m
|
33617
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
33618
|
+
FROM sqlite_master
|
33619
|
+
WHERE name='index_payola_sales_on_owner_id_and_owner_type' AND type='index'
|
33620
|
+
UNION ALL
|
33621
|
+
SELECT sql
|
33622
|
+
FROM sqlite_temp_master
|
33623
|
+
WHERE name='index_payola_sales_on_owner_id_and_owner_type' AND type='index'
|
33624
|
+
|
33625
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
33626
|
+
FROM sqlite_master
|
33627
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
33628
|
+
UNION ALL
|
33629
|
+
SELECT sql
|
33630
|
+
FROM sqlite_temp_master
|
33631
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
33632
|
+
[0m
|
33633
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
33634
|
+
FROM sqlite_master
|
33635
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
33636
|
+
UNION ALL
|
33637
|
+
SELECT sql
|
33638
|
+
FROM sqlite_temp_master
|
33639
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
33640
|
+
|
33641
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
33642
|
+
FROM sqlite_master
|
33643
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
33644
|
+
UNION ALL
|
33645
|
+
SELECT sql
|
33646
|
+
FROM sqlite_temp_master
|
33647
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
33648
|
+
[0m
|
33649
|
+
[1m[35m (0.9ms)[0m CREATE INDEX "index_payola_sales_on_stripe_customer_id" ON "payola_sales" ("stripe_customer_id")
|
33650
|
+
[1m[36m (0.7ms)[0m [1mCREATE TABLE "payola_stripe_webhooks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "stripe_id" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
33651
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "permalink" varchar(255), "price" integer, "created_at" datetime, "updated_at" datetime)
|
33652
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
33653
|
+
[1m[35m (0.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
33654
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
33655
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141029140518')
|
33656
|
+
[1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141001230848')[0m
|
33657
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141001170138')
|
33658
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141001203541')[0m
|
33659
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141002013618')
|
33660
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141002013701')[0m
|
33661
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141002203725')
|
33662
|
+
[1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141017233304')[0m
|
33663
|
+
[1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141026101628')
|
33664
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141026144800')[0m
|
33665
|
+
[1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141029135848')
|
33666
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
33667
|
+
[1m[35m (0.1ms)[0m begin transaction
|
33668
|
+
[1m[36mPayola::StripeWebhook Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_stripe_webhooks" WHERE "payola_stripe_webhooks"."stripe_id" = 'test_id' LIMIT 1[0m
|
33669
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
33670
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
33671
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33672
|
+
[1m[36mPayola::StripeWebhook Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_stripe_webhooks" WHERE "payola_stripe_webhooks"."stripe_id" = 'test_id' LIMIT 1[0m
|
33673
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "payola_stripe_webhooks" ("created_at", "stripe_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-03 21:32:47.809769"], ["stripe_id", "test_id"], ["updated_at", "2014-11-03 21:32:47.809769"]]
|
33674
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33675
|
+
[1m[35mPayola::StripeWebhook Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_stripe_webhooks" WHERE "payola_stripe_webhooks"."stripe_id" = 'test_id' LIMIT 1
|
33676
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
33677
|
+
[1m[35m (0.1ms)[0m begin transaction
|
33678
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33679
|
+
[1m[35m (0.1ms)[0m begin transaction
|
33680
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33681
|
+
[1m[35m (0.1ms)[0m begin transaction
|
33682
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33683
|
+
[1m[35m (0.1ms)[0m begin transaction
|
33684
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33685
|
+
[1m[35m (0.1ms)[0m begin transaction
|
33686
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33687
|
+
[1m[35m (0.1ms)[0m begin transaction
|
33688
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33689
|
+
[1m[35m (0.1ms)[0m begin transaction
|
33690
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33691
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33692
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33693
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33694
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
33695
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-1' LIMIT 1
|
33696
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:32:47.905363"], ["name", "Foo"], ["permalink", "foo-1"], ["price", 100], ["updated_at", "2014-11-03 21:32:47.905363"]]
|
33697
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33698
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
33699
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
33700
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
33701
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = '2ece48' LIMIT 1
|
33702
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:32:47.917533"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "2ece48"], ["product_id", 1], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:32:47.917533"]]
|
33703
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33704
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33705
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "owners" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-11-03 21:32:47.922147"], ["updated_at", "2014-11-03 21:32:47.922147"]]
|
33706
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33707
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33708
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = '2ece48' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
33709
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "payola_sales" SET "owner_id" = ?, "owner_type" = ?, "updated_at" = ? WHERE "payola_sales"."id" = 1 [["owner_id", 1], ["owner_type", "Owner"], ["updated_at", "2014-11-03 21:32:47.926899"]]
|
33710
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33711
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
33712
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
33713
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
33714
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-2' LIMIT 1[0m
|
33715
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:32:47.933641"], ["name", "Foo"], ["permalink", "foo-2"], ["price", 100], ["updated_at", "2014-11-03 21:32:47.933641"]]
|
33716
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33717
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33718
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
33719
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
33720
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'fvrm5c' LIMIT 1[0m
|
33721
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:32:47.937461"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "fvrm5c"], ["product_id", 1], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:32:47.937461"]]
|
33722
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33723
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33724
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "state" = 'processing' WHERE "payola_sales"."id" = 1[0m
|
33725
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
33726
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
33727
|
+
[1m[35m (0.1ms)[0m begin transaction
|
33728
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33729
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-3' LIMIT 1
|
33730
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:32:47.949886"], ["name", "Foo"], ["permalink", "foo-3"], ["price", 100], ["updated_at", "2014-11-03 21:32:47.949886"]]
|
33731
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33732
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33733
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
33734
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
33735
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'krh6up' LIMIT 1
|
33736
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:32:47.952570"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "krh6up"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:32:47.952570"]]
|
33737
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33738
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33739
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "payola_sales" SET "state" = 'errored' WHERE "payola_sales"."id" = 1
|
33740
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33741
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
33742
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
33743
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
33744
|
+
[1m[36mProduct Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-4' LIMIT 1[0m
|
33745
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:32:47.960391"], ["name", "Foo"], ["permalink", "foo-4"], ["price", 100], ["updated_at", "2014-11-03 21:32:47.960391"]]
|
33746
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33747
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
33748
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
33749
|
+
[1m[35mPayola::Sale Exists (0.2ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
33750
|
+
[1m[36mPayola::Sale Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 't3lpks' LIMIT 1[0m
|
33751
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:32:47.967650"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "t3lpks"], ["product_id", 1], ["product_type", "Product"], ["state", "finished"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:32:47.967650"]]
|
33752
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33753
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33754
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "state" = 'refunded' WHERE "payola_sales"."id" = 1[0m
|
33755
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33756
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
33757
|
+
[1m[35m (0.1ms)[0m begin transaction
|
33758
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
33759
|
+
[1m[35mProduct Exists (0.2ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-5' LIMIT 1
|
33760
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:32:47.975941"], ["name", "Foo"], ["permalink", "foo-5"], ["price", 100], ["updated_at", "2014-11-03 21:32:47.975941"]]
|
33761
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
33762
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
33763
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
33764
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
33765
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'k1c8hf' LIMIT 1
|
33766
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:32:47.980228"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "k1c8hf"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:32:47.980228"]]
|
33767
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
33768
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
33769
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "payola_sales" SET "state" = 'finished' WHERE "payola_sales"."id" = 1
|
33770
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33771
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
33772
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
33773
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33774
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-6' LIMIT 1[0m
|
33775
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:32:47.987668"], ["name", "Foo"], ["permalink", "foo-6"], ["price", 100], ["updated_at", "2014-11-03 21:32:47.987668"]]
|
33776
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33777
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33778
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
33779
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
33780
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'kehl2t' LIMIT 1[0m
|
33781
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:32:47.990598"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "kehl2t"], ["product_id", 1], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:32:47.990598"]]
|
33782
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33783
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'kehl2t' AND "payola_sales"."id" != 1) LIMIT 1
|
33784
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33785
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-7' LIMIT 1
|
33786
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:32:47.993658"], ["name", "Foo"], ["permalink", "foo-7"], ["price", 100], ["updated_at", "2014-11-03 21:32:47.993658"]]
|
33787
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33788
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'kehl2t' LIMIT 1[0m
|
33789
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
33790
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
33791
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
33792
|
+
[1m[36mProduct Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-8' LIMIT 1[0m
|
33793
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:32:48.000142"], ["name", "Foo"], ["permalink", "foo-8"], ["price", 100], ["updated_at", "2014-11-03 21:32:48.000142"]]
|
33794
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33795
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33796
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
33797
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
33798
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = '8s171f' LIMIT 1[0m
|
33799
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:32:48.003066"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "8s171f"], ["product_id", 1], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:32:48.003066"]]
|
33800
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33801
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33802
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = '8s171f' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
33803
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "payola_sales" SET "signed_custom_fields" = ?, "updated_at" = ? WHERE "payola_sales"."id" = 1 [["signed_custom_fields", "BAh7BkkiCmZpZWxkBjoGRUZJIgp2YWx1ZQY7AEY=--5d721d50404afc54672ec88747e606e4226813b1fdb826dff62844c014ca61fc"], ["updated_at", "2014-11-03 21:32:48.005350"]]
|
33804
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33805
|
+
[1m[35mPayola::Sale Load (0.1ms)[0m SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1 [["id", 1]]
|
33806
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
33807
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33808
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
33809
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
33810
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33811
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
33812
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-9' LIMIT 1[0m
|
33813
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:32:48.013141"], ["name", "Foo"], ["permalink", "foo-9"], ["price", 100], ["updated_at", "2014-11-03 21:32:48.013141"]]
|
33814
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33815
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
33816
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
33817
|
+
[1m[35m (0.1ms)[0m begin transaction
|
33818
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33819
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-10' LIMIT 1
|
33820
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:32:48.061338"], ["name", "Foo"], ["permalink", "foo-10"], ["price", 100], ["updated_at", "2014-11-03 21:32:48.061338"]]
|
33821
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33822
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
33823
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
33824
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33825
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33826
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-11' LIMIT 1[0m
|
33827
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:32:48.066267"], ["name", "Foo"], ["permalink", "foo-11"], ["price", 100], ["updated_at", "2014-11-03 21:32:48.066267"]]
|
33828
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33829
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
33830
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
33831
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33832
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33833
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33834
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33835
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-12' LIMIT 1
|
33836
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:32:48.072161"], ["name", "Foo"], ["permalink", "foo-12"], ["price", 100], ["updated_at", "2014-11-03 21:32:48.072161"]]
|
33837
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
33838
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33839
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
33840
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
33841
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'nn3mlj' LIMIT 1
|
33842
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:32:48.075278"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "nn3mlj"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:32:48.075278"]]
|
33843
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33844
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33845
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'nn3mlj' AND "payola_sales"."id" != 1) LIMIT 1
|
33846
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33847
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
33848
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'nn3mlj' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
33849
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "payola_sales" SET "card_expiration" = ?, "card_last4" = ?, "card_type" = ?, "fee_amount" = ?, "stripe_customer_id" = ?, "stripe_id" = ?, "updated_at" = ? WHERE "payola_sales"."id" = 1 [["card_expiration", "2013-12-01"], ["card_last4", "4242"], ["card_type", "Visa"], ["fee_amount", 0], ["stripe_customer_id", "test_cus_1"], ["stripe_id", "test_ch_3"], ["updated_at", "2014-11-03 21:32:48.079311"]]
|
33850
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33851
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33852
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "state" = 'finished' WHERE "payola_sales"."id" = 1[0m
|
33853
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33854
|
+
[1m[36mPayola::Sale Load (0.0ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1[0m [["id", 1]]
|
33855
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
33856
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
33857
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33858
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-13' LIMIT 1[0m
|
33859
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:32:48.084853"], ["name", "Foo"], ["permalink", "foo-13"], ["price", 100], ["updated_at", "2014-11-03 21:32:48.084853"]]
|
33860
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33861
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33862
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
33863
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
33864
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'jneja' LIMIT 1[0m
|
33865
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:32:48.087562"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "jneja"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:32:48.087562"]]
|
33866
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33867
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33868
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'jneja' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
33869
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33870
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33871
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'jneja' AND "payola_sales"."id" != 1) LIMIT 1
|
33872
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "card_expiration" = ?, "card_last4" = ?, "card_type" = ?, "fee_amount" = ?, "stripe_customer_id" = ?, "stripe_id" = ?, "updated_at" = ? WHERE "payola_sales"."id" = 1[0m [["card_expiration", "2013-12-01"], ["card_last4", "4242"], ["card_type", "Visa"], ["fee_amount", 0], ["stripe_customer_id", "test_cus_1"], ["stripe_id", "test_ch_3"], ["updated_at", "2014-11-03 21:32:48.091557"]]
|
33873
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33874
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33875
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "payola_sales" SET "state" = 'finished' WHERE "payola_sales"."id" = 1
|
33876
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33877
|
+
[1m[35mPayola::Sale Load (0.0ms)[0m SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1 [["id", 1]]
|
33878
|
+
[1m[36mPayola::Sale Load (0.0ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1[0m [["id", 1]]
|
33879
|
+
[1m[35mPayola::Sale Load (0.0ms)[0m SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1 [["id", 1]]
|
33880
|
+
[1m[36mPayola::Sale Load (0.0ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1[0m [["id", 1]]
|
33881
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
33882
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33883
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
33884
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-14' LIMIT 1[0m
|
33885
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:32:48.097983"], ["name", "Foo"], ["permalink", "foo-14"], ["price", 100], ["updated_at", "2014-11-03 21:32:48.097983"]]
|
33886
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33887
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
33888
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
33889
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
33890
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'o9f57e' LIMIT 1[0m
|
33891
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:32:48.102264"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "o9f57e"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:32:48.102264"]]
|
33892
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33893
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
33894
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'o9f57e' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
33895
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
33896
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
33897
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'o9f57e' AND "payola_sales"."id" != 1) LIMIT 1
|
33898
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "card_expiration" = ?, "card_last4" = ?, "card_type" = ?, "fee_amount" = ?, "stripe_customer_id" = ?, "stripe_id" = ?, "updated_at" = ? WHERE "payola_sales"."id" = 1[0m [["card_expiration", "2013-12-01"], ["card_last4", "4242"], ["card_type", "Visa"], ["fee_amount", 0], ["stripe_customer_id", "test_cus_1"], ["stripe_id", "test_ch_3"], ["updated_at", "2014-11-03 21:32:48.108304"]]
|
33899
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33900
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33901
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "payola_sales" SET "state" = 'finished' WHERE "payola_sales"."id" = 1
|
33902
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33903
|
+
[1m[35mPayola::Sale Load (0.0ms)[0m SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1 [["id", 1]]
|
33904
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
33905
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33906
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
33907
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-15' LIMIT 1
|
33908
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:32:48.114715"], ["name", "Foo"], ["permalink", "foo-15"], ["price", 100], ["updated_at", "2014-11-03 21:32:48.114715"]]
|
33909
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33910
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33911
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
33912
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
33913
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'dobt18' LIMIT 1
|
33914
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:32:48.117504"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "dobt18"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:32:48.117504"]]
|
33915
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33916
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33917
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'dobt18' AND "payola_sales"."id" != 1) LIMIT 1
|
33918
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33919
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33920
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'dobt18' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
33921
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "payola_sales" SET "error" = ?, "updated_at" = ? WHERE "payola_sales"."id" = 1 [["error", "The card was declined"], ["updated_at", "2014-11-03 21:32:48.121252"]]
|
33922
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33923
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33924
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "state" = 'errored' WHERE "payola_sales"."id" = 1[0m
|
33925
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33926
|
+
[1m[36mPayola::Sale Load (0.0ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1[0m [["id", 1]]
|
33927
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
33928
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33929
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
33930
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33931
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
33932
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33933
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
33934
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33935
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
33936
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33937
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
33938
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33939
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
33940
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33941
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33942
|
+
[1m[36mProduct Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-16' LIMIT 1[0m
|
33943
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:32:48.135119"], ["name", "Foo"], ["permalink", "foo-16"], ["price", 100], ["updated_at", "2014-11-03 21:32:48.135119"]]
|
33944
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33945
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
33946
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33947
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33948
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-17' LIMIT 1[0m
|
33949
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:32:48.139157"], ["name", "Foo"], ["permalink", "foo-17"], ["price", 100], ["updated_at", "2014-11-03 21:32:48.139157"]]
|
33950
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33951
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33952
|
+
[1m[36mPayola::Affiliate Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_affiliates" WHERE "payola_affiliates"."code" = 'MyString' LIMIT 1[0m
|
33953
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "payola_affiliates" ("code", "created_at", "email", "percent", "updated_at") VALUES (?, ?, ?, ?, ?) [["code", "MyString"], ["created_at", "2014-11-03 21:32:48.147538"], ["email", "foo@example.com"], ["percent", 100], ["updated_at", "2014-11-03 21:32:48.147538"]]
|
33954
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33955
|
+
[1m[35mPayola::Affiliate Load (0.1ms)[0m SELECT "payola_affiliates".* FROM "payola_affiliates" WHERE "payola_affiliates"."id" = ? LIMIT 1 [["id", 1]]
|
33956
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
33957
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33958
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33959
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-18' LIMIT 1
|
33960
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:32:48.157001"], ["name", "Foo"], ["permalink", "foo-18"], ["price", 100], ["updated_at", "2014-11-03 21:32:48.157001"]]
|
33961
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33962
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
33963
|
+
[1m[35mPayola::Coupon Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_coupons" WHERE "payola_coupons"."code" = 'MyString' LIMIT 1
|
33964
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "payola_coupons" ("code", "created_at", "percent_off", "updated_at") VALUES (?, ?, ?, ?)[0m [["code", "MyString"], ["created_at", "2014-11-03 21:32:48.167330"], ["percent_off", 1], ["updated_at", "2014-11-03 21:32:48.167330"]]
|
33965
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
33966
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
33967
|
+
[1m[35m (0.1ms)[0m begin transaction
|
33968
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
33969
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-19' LIMIT 1
|
33970
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:32:48.175060"], ["name", "Foo"], ["permalink", "foo-19"], ["price", 100], ["updated_at", "2014-11-03 21:32:48.175060"]]
|
33971
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33972
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33973
|
+
[1m[35mPayola::Coupon Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_coupons" WHERE "payola_coupons"."code" = 'MyString' LIMIT 1
|
33974
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "payola_coupons" ("code", "created_at", "percent_off", "updated_at") VALUES (?, ?, ?, ?)[0m [["code", "MyString"], ["created_at", "2014-11-03 21:32:48.176836"], ["percent_off", 1], ["updated_at", "2014-11-03 21:32:48.176836"]]
|
33975
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33976
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
33977
|
+
[1m[35m (0.1ms)[0m begin transaction
|
33978
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33979
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33980
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33981
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33982
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33983
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33984
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33985
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33986
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33987
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33988
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33989
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33990
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33991
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33992
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33993
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33994
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33995
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33996
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33997
|
+
[1m[35m (0.1ms)[0m begin transaction
|
33998
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'f' LIMIT 1[0m
|
33999
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
34000
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
34001
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-21' LIMIT 1
|
34002
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
34003
|
+
[1m[35m (0.0ms)[0m begin transaction
|
34004
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-22' LIMIT 1[0m
|
34005
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
34006
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
34007
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
34008
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-23' LIMIT 1[0m
|
34009
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:32:48.261637"], ["name", "Foo"], ["permalink", "foo-23"], ["price", 100], ["updated_at", "2014-11-03 21:32:48.261637"]]
|
34010
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34011
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
34012
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-24' LIMIT 1[0m
|
34013
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:32:48.263720"], ["name", "Foo"], ["permalink", "foo-24"], ["price", 100], ["updated_at", "2014-11-03 21:32:48.263720"]]
|
34014
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34015
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
34016
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
34017
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
34018
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'f2lv37' LIMIT 1[0m
|
34019
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:32:48.266200"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "f2lv37"], ["product_id", 2], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:32:48.266200"]]
|
34020
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34021
|
+
Processing by Payola::TransactionsController#show as HTML
|
34022
|
+
Parameters: {"guid"=>"f2lv37"}
|
34023
|
+
[1m[35mPayola::Sale Load (0.2ms)[0m SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."guid" = 'f2lv37' LIMIT 1
|
34024
|
+
[1m[36mProduct Load (0.1ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1[0m [["id", 2]]
|
34025
|
+
Redirected to http://test.host/
|
34026
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
|
34027
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
34028
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
34029
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
34030
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-25' LIMIT 1[0m
|
34031
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:32:48.279040"], ["name", "Foo"], ["permalink", "foo-25"], ["price", 100], ["updated_at", "2014-11-03 21:32:48.279040"]]
|
34032
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34033
|
+
Processing by Payola::TransactionsController#status as HTML
|
34034
|
+
Parameters: {"guid"=>"doesnotexist"}
|
34035
|
+
[1m[35mPayola::Sale Load (0.1ms)[0m SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."guid" = 'doesnotexist' ORDER BY "payola_sales"."id" ASC LIMIT 1
|
34036
|
+
Completed 404 Not Found in 7ms (Views: 6.4ms | ActiveRecord: 0.1ms)
|
34037
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
34038
|
+
[1m[35m (0.1ms)[0m begin transaction
|
34039
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
34040
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-26' LIMIT 1
|
34041
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:32:48.292368"], ["name", "Foo"], ["permalink", "foo-26"], ["price", 100], ["updated_at", "2014-11-03 21:32:48.292368"]]
|
34042
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
34043
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
34044
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-27' LIMIT 1
|
34045
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:32:48.294652"], ["name", "Foo"], ["permalink", "foo-27"], ["price", 100], ["updated_at", "2014-11-03 21:32:48.294652"]]
|
34046
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
34047
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
34048
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
34049
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
34050
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'erbas9' LIMIT 1
|
34051
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:32:48.297996"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "erbas9"], ["product_id", 2], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:32:48.297996"]]
|
34052
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
34053
|
+
Processing by Payola::TransactionsController#status as HTML
|
34054
|
+
Parameters: {"guid"=>"erbas9"}
|
34055
|
+
[1m[36mPayola::Sale Load (0.2ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."guid" = 'erbas9' ORDER BY "payola_sales"."id" ASC LIMIT 1[0m
|
34056
|
+
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
|
34057
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
34058
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
34059
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
34060
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-28' LIMIT 1[0m
|
34061
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:32:48.306051"], ["name", "Foo"], ["permalink", "foo-28"], ["price", 100], ["updated_at", "2014-11-03 21:32:48.306051"]]
|
34062
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34063
|
+
Processing by Payola::TransactionsController#create as HTML
|
34064
|
+
Parameters: {"product_class"=>"product", "permalink"=>"foo-28"}
|
34065
|
+
[1m[35mProduct Load (0.1ms)[0m SELECT "products".* FROM "products" WHERE "products"."permalink" = 'foo-28' LIMIT 1
|
34066
|
+
[1m[36mPayola::Coupon Load (0.1ms)[0m [1mSELECT "payola_coupons".* FROM "payola_coupons" WHERE (lower(code) = lower(NULL)) ORDER BY "payola_coupons"."id" ASC LIMIT 1[0m
|
34067
|
+
[1m[35mPayola::Affiliate Load (0.1ms)[0m SELECT "payola_affiliates".* FROM "payola_affiliates" WHERE (lower(code) = lower(NULL)) ORDER BY "payola_affiliates"."id" ASC LIMIT 1
|
34068
|
+
Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.2ms)
|
34069
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
34070
|
+
[1m[35m (0.0ms)[0m begin transaction
|
34071
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
34072
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-29' LIMIT 1
|
34073
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:32:48.317188"], ["name", "Foo"], ["permalink", "foo-29"], ["price", 100], ["updated_at", "2014-11-03 21:32:48.317188"]]
|
34074
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
34075
|
+
Processing by Payola::TransactionsController#create as HTML
|
34076
|
+
Parameters: {"product_class"=>"product", "permalink"=>"foo-29"}
|
34077
|
+
[1m[36mProduct Load (0.1ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."permalink" = 'foo-29' LIMIT 1[0m
|
34078
|
+
[1m[35mPayola::Coupon Load (0.1ms)[0m SELECT "payola_coupons".* FROM "payola_coupons" WHERE (lower(code) = lower(NULL)) ORDER BY "payola_coupons"."id" ASC LIMIT 1
|
34079
|
+
[1m[36mPayola::Affiliate Load (0.1ms)[0m [1mSELECT "payola_affiliates".* FROM "payola_affiliates" WHERE (lower(code) = lower(NULL)) ORDER BY "payola_affiliates"."id" ASC LIMIT 1[0m
|
34080
|
+
Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
|
34081
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
34082
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
34083
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
34084
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
34085
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
34086
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
34087
|
+
[1m[35m (0.1ms)[0m rollback transaction
|