payola-payments 1.1.0 → 1.1.1
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/admin_mailer.rb +2 -0
- data/app/mailers/payola/receipt_mailer.rb +1 -0
- data/app/services/payola/send_mail.rb +1 -1
- data/lib/payola.rb +1 -1
- data/lib/payola/version.rb +1 -1
- data/lib/payola/worker/active_job.rb +2 -2
- data/lib/payola/worker/base.rb +1 -1
- data/lib/payola/worker/sidekiq.rb +1 -1
- data/lib/payola/worker/sucker_punch.rb +1 -1
- data/spec/dummy/log/test.log +1139 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ODU5OTVkZmMzMGFkYzAxOWZkN2VhZTZjNTAwNWI4N2NlNTZlOTI0Yw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MDljODllYWQyOWRiNDMwY2M1MDg1MTMyZGQwNTZjYTBkOTFhOTQ1MA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MjcwZDM0YThjNGQyZjA2NzlkYTdhZjFiNjE5M2Y1MzYxMGM3YTczOTIyZWIy
|
10
|
+
NTJkOTFlZmM1YjUzZDhiNDQ0YzI0OGM3OWNhMTA1YzYwMzhlNjYwYzA2MThm
|
11
|
+
MjM2ODliYmQ2ZTI3MmZlZDUxYTM1YjE3NjAwOWZhZjA3YjA2NjU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZGM4NWRmMmFjMjYzM2IxYjkwNzZiOGIyYzhiZWUyNDQ5NjNhNzY4Y2Q0ZmZh
|
14
|
+
NjM5MGY0NDNkNzhlMTMzMzI5NTMxZGUyZTRlMjU5NDc4OGRlMWJiZTE0ZDVk
|
15
|
+
ZTYyYmFhMDczMDJlY2UxZTYxNzU2ZTgzYjZkNDMwZjdiMjg2NDQ=
|
data/lib/payola.rb
CHANGED
data/lib/payola/version.rb
CHANGED
data/lib/payola/worker/base.rb
CHANGED
data/spec/dummy/log/test.log
CHANGED
@@ -31239,3 +31239,1142 @@ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
|
|
31239
31239
|
[1m[35m (0.0ms)[0m rollback transaction
|
31240
31240
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
31241
31241
|
[1m[35m (0.0ms)[0m rollback transaction
|
31242
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "owners" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
31243
|
+
[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)
|
31244
|
+
[1m[36m (0.9ms)[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
|
31245
|
+
[1m[35m (1.0ms)[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))
|
31246
|
+
[1m[36m (0.2ms)[0m [1mselect sqlite_version(*)[0m
|
31247
|
+
[1m[35m (1.0ms)[0m CREATE INDEX "index_payola_sales_on_coupon_id" ON "payola_sales" ("coupon_id")
|
31248
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
31249
|
+
FROM sqlite_master
|
31250
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
31251
|
+
UNION ALL
|
31252
|
+
SELECT sql
|
31253
|
+
FROM sqlite_temp_master
|
31254
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
31255
|
+
[0m
|
31256
|
+
[1m[35m (0.9ms)[0m CREATE INDEX "index_payola_sales_on_email" ON "payola_sales" ("email")
|
31257
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
31258
|
+
FROM sqlite_master
|
31259
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
31260
|
+
UNION ALL
|
31261
|
+
SELECT sql
|
31262
|
+
FROM sqlite_temp_master
|
31263
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
31264
|
+
[0m
|
31265
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
31266
|
+
FROM sqlite_master
|
31267
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
31268
|
+
UNION ALL
|
31269
|
+
SELECT sql
|
31270
|
+
FROM sqlite_temp_master
|
31271
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
31272
|
+
|
31273
|
+
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_payola_sales_on_guid" ON "payola_sales" ("guid")[0m
|
31274
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
31275
|
+
FROM sqlite_master
|
31276
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
31277
|
+
UNION ALL
|
31278
|
+
SELECT sql
|
31279
|
+
FROM sqlite_temp_master
|
31280
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
31281
|
+
|
31282
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
31283
|
+
FROM sqlite_master
|
31284
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
31285
|
+
UNION ALL
|
31286
|
+
SELECT sql
|
31287
|
+
FROM sqlite_temp_master
|
31288
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
31289
|
+
[0m
|
31290
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
31291
|
+
FROM sqlite_master
|
31292
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
31293
|
+
UNION ALL
|
31294
|
+
SELECT sql
|
31295
|
+
FROM sqlite_temp_master
|
31296
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
31297
|
+
|
31298
|
+
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_payola_sales_on_owner_id_and_owner_type" ON "payola_sales" ("owner_id", "owner_type")[0m
|
31299
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
31300
|
+
FROM sqlite_master
|
31301
|
+
WHERE name='index_payola_sales_on_owner_id_and_owner_type' AND type='index'
|
31302
|
+
UNION ALL
|
31303
|
+
SELECT sql
|
31304
|
+
FROM sqlite_temp_master
|
31305
|
+
WHERE name='index_payola_sales_on_owner_id_and_owner_type' AND type='index'
|
31306
|
+
|
31307
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
31308
|
+
FROM sqlite_master
|
31309
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
31310
|
+
UNION ALL
|
31311
|
+
SELECT sql
|
31312
|
+
FROM sqlite_temp_master
|
31313
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
31314
|
+
[0m
|
31315
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
31316
|
+
FROM sqlite_master
|
31317
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
31318
|
+
UNION ALL
|
31319
|
+
SELECT sql
|
31320
|
+
FROM sqlite_temp_master
|
31321
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
31322
|
+
|
31323
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
31324
|
+
FROM sqlite_master
|
31325
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
31326
|
+
UNION ALL
|
31327
|
+
SELECT sql
|
31328
|
+
FROM sqlite_temp_master
|
31329
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
31330
|
+
[0m
|
31331
|
+
[1m[35m (0.9ms)[0m CREATE INDEX "index_payola_sales_on_product" ON "payola_sales" ("product_id", "product_type")
|
31332
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
31333
|
+
FROM sqlite_master
|
31334
|
+
WHERE name='index_payola_sales_on_product' AND type='index'
|
31335
|
+
UNION ALL
|
31336
|
+
SELECT sql
|
31337
|
+
FROM sqlite_temp_master
|
31338
|
+
WHERE name='index_payola_sales_on_product' AND type='index'
|
31339
|
+
[0m
|
31340
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
31341
|
+
FROM sqlite_master
|
31342
|
+
WHERE name='index_payola_sales_on_owner_id_and_owner_type' AND type='index'
|
31343
|
+
UNION ALL
|
31344
|
+
SELECT sql
|
31345
|
+
FROM sqlite_temp_master
|
31346
|
+
WHERE name='index_payola_sales_on_owner_id_and_owner_type' AND type='index'
|
31347
|
+
|
31348
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
31349
|
+
FROM sqlite_master
|
31350
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
31351
|
+
UNION ALL
|
31352
|
+
SELECT sql
|
31353
|
+
FROM sqlite_temp_master
|
31354
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
31355
|
+
[0m
|
31356
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
31357
|
+
FROM sqlite_master
|
31358
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
31359
|
+
UNION ALL
|
31360
|
+
SELECT sql
|
31361
|
+
FROM sqlite_temp_master
|
31362
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
31363
|
+
|
31364
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
31365
|
+
FROM sqlite_master
|
31366
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
31367
|
+
UNION ALL
|
31368
|
+
SELECT sql
|
31369
|
+
FROM sqlite_temp_master
|
31370
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
31371
|
+
[0m
|
31372
|
+
[1m[35m (0.9ms)[0m CREATE INDEX "index_payola_sales_on_stripe_customer_id" ON "payola_sales" ("stripe_customer_id")
|
31373
|
+
[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
|
31374
|
+
[1m[35m (0.8ms)[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)
|
31375
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
31376
|
+
[1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
31377
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
31378
|
+
[1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141029140518')
|
31379
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141001230848')[0m
|
31380
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141001170138')
|
31381
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141001203541')[0m
|
31382
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141002013618')
|
31383
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141002013701')[0m
|
31384
|
+
[1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141002203725')
|
31385
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141017233304')[0m
|
31386
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141026101628')
|
31387
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141026144800')[0m
|
31388
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141029135848')
|
31389
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
31390
|
+
[1m[35m (0.1ms)[0m begin transaction
|
31391
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
31392
|
+
[1m[35m (0.1ms)[0m begin transaction
|
31393
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
31394
|
+
[1m[35m (0.0ms)[0m begin transaction
|
31395
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
31396
|
+
[1m[35m (0.0ms)[0m begin transaction
|
31397
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
31398
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-1' LIMIT 1
|
31399
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 19:00:20.329488"], ["name", "Foo"], ["permalink", "foo-1"], ["price", 100], ["updated_at", "2014-11-03 19:00:20.329488"]]
|
31400
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
31401
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
31402
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
31403
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
31404
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = '6n3l4k' LIMIT 1
|
31405
|
+
[1m[36mSQL (1.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 19:00:20.341394"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "6n3l4k"], ["product_id", 1], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 19:00:20.341394"]]
|
31406
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
31407
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
31408
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "owners" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-11-03 19:00:20.346444"], ["updated_at", "2014-11-03 19:00:20.346444"]]
|
31409
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31410
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
31411
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = '6n3l4k' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
31412
|
+
[1m[35mSQL (0.1ms)[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 19:00:20.351374"]]
|
31413
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31414
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
31415
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
31416
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
31417
|
+
[1m[36mProduct Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-2' LIMIT 1[0m
|
31418
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 19:00:20.358024"], ["name", "Foo"], ["permalink", "foo-2"], ["price", 100], ["updated_at", "2014-11-03 19:00:20.358024"]]
|
31419
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31420
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
31421
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
31422
|
+
[1m[35m (0.0ms)[0m begin transaction
|
31423
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
31424
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
31425
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
31426
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
31427
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-3' LIMIT 1[0m
|
31428
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 19:00:20.414160"], ["name", "Foo"], ["permalink", "foo-3"], ["price", 100], ["updated_at", "2014-11-03 19:00:20.414160"]]
|
31429
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31430
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
31431
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
31432
|
+
[1m[35m (0.0ms)[0m begin transaction
|
31433
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
31434
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-4' LIMIT 1
|
31435
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 19:00:20.418458"], ["name", "Foo"], ["permalink", "foo-4"], ["price", 100], ["updated_at", "2014-11-03 19:00:20.418458"]]
|
31436
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
31437
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
31438
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
31439
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
31440
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
31441
|
+
[1m[36mProduct Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-5' LIMIT 1[0m
|
31442
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 19:00:20.425700"], ["name", "Foo"], ["permalink", "foo-5"], ["price", 100], ["updated_at", "2014-11-03 19:00:20.425700"]]
|
31443
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31444
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
31445
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
31446
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
31447
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'mpc0op' LIMIT 1[0m
|
31448
|
+
[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 19:00:20.429556"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "mpc0op"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 19:00:20.429556"]]
|
31449
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31450
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
31451
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "state" = 'errored' WHERE "payola_sales"."id" = 1[0m
|
31452
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
31453
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
31454
|
+
[1m[35m (0.1ms)[0m begin transaction
|
31455
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
31456
|
+
[1m[35mProduct Exists (0.2ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-6' LIMIT 1
|
31457
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 19:00:20.442682"], ["name", "Foo"], ["permalink", "foo-6"], ["price", 100], ["updated_at", "2014-11-03 19:00:20.442682"]]
|
31458
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
31459
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
31460
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
31461
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
31462
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'htf0ti' LIMIT 1
|
31463
|
+
[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 19:00:20.446525"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "htf0ti"], ["product_id", 1], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 19:00:20.446525"]]
|
31464
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
31465
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'htf0ti' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
31466
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
31467
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-7' LIMIT 1[0m
|
31468
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 19:00:20.451262"], ["name", "Foo"], ["permalink", "foo-7"], ["price", 100], ["updated_at", "2014-11-03 19:00:20.451262"]]
|
31469
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31470
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'htf0ti' LIMIT 1
|
31471
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
31472
|
+
[1m[35m (0.1ms)[0m begin transaction
|
31473
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
31474
|
+
[1m[35mProduct Exists (0.2ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-8' LIMIT 1
|
31475
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 19:00:20.458293"], ["name", "Foo"], ["permalink", "foo-8"], ["price", 100], ["updated_at", "2014-11-03 19:00:20.458293"]]
|
31476
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
31477
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
31478
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
31479
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
31480
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'df70d9' LIMIT 1
|
31481
|
+
[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 19:00:20.462145"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "df70d9"], ["product_id", 1], ["product_type", "Product"], ["state", "finished"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 19:00:20.462145"]]
|
31482
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
31483
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
31484
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "payola_sales" SET "state" = 'refunded' WHERE "payola_sales"."id" = 1
|
31485
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31486
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
31487
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
31488
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
31489
|
+
[1m[36mProduct Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-9' LIMIT 1[0m
|
31490
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 19:00:20.470542"], ["name", "Foo"], ["permalink", "foo-9"], ["price", 100], ["updated_at", "2014-11-03 19:00:20.470542"]]
|
31491
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31492
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
31493
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
31494
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
31495
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'ng5fko' LIMIT 1[0m
|
31496
|
+
[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 19:00:20.474378"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "ng5fko"], ["product_id", 1], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 19:00:20.474378"]]
|
31497
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31498
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
31499
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "state" = 'processing' WHERE "payola_sales"."id" = 1[0m
|
31500
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
31501
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
31502
|
+
[1m[35m (0.1ms)[0m begin transaction
|
31503
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
31504
|
+
[1m[35mProduct Exists (0.2ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-10' LIMIT 1
|
31505
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 19:00:20.481498"], ["name", "Foo"], ["permalink", "foo-10"], ["price", 100], ["updated_at", "2014-11-03 19:00:20.481498"]]
|
31506
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
31507
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
31508
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
31509
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
31510
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'kl574i' LIMIT 1
|
31511
|
+
[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 19:00:20.485368"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "kl574i"], ["product_id", 1], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 19:00:20.485368"]]
|
31512
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
31513
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
31514
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'kl574i' AND "payola_sales"."id" != 1) LIMIT 1
|
31515
|
+
[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 19:00:20.488304"]]
|
31516
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
31517
|
+
[1m[36mPayola::Sale Load (0.1ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1[0m [["id", 1]]
|
31518
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
31519
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
31520
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
31521
|
+
[1m[36mProduct Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-11' LIMIT 1[0m
|
31522
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 19:00:20.494569"], ["name", "Foo"], ["permalink", "foo-11"], ["price", 100], ["updated_at", "2014-11-03 19:00:20.494569"]]
|
31523
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31524
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
31525
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
31526
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
31527
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'kq09fh' LIMIT 1[0m
|
31528
|
+
[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 19:00:20.498661"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "kq09fh"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 19:00:20.498661"]]
|
31529
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31530
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
31531
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "state" = 'finished' WHERE "payola_sales"."id" = 1[0m
|
31532
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
31533
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
31534
|
+
[1m[35m (0.1ms)[0m begin transaction
|
31535
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
31536
|
+
[1m[35m (0.1ms)[0m begin transaction
|
31537
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
31538
|
+
[1m[35m (0.1ms)[0m begin transaction
|
31539
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
31540
|
+
[1m[35m (0.1ms)[0m begin transaction
|
31541
|
+
[1m[36mProduct Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-13' LIMIT 1[0m
|
31542
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
31543
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
31544
|
+
[1m[35mProduct Exists (0.2ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'f' LIMIT 1
|
31545
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
31546
|
+
[1m[35m (0.1ms)[0m begin transaction
|
31547
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-14' LIMIT 1[0m
|
31548
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
31549
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
31550
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
31551
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
31552
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
31553
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-15' LIMIT 1[0m
|
31554
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 19:00:20.523854"], ["name", "Foo"], ["permalink", "foo-15"], ["price", 100], ["updated_at", "2014-11-03 19:00:20.523854"]]
|
31555
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31556
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
31557
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
31558
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
31559
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = '2cl5oi' LIMIT 1[0m
|
31560
|
+
[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 19:00:20.527102"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "2cl5oi"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 19:00:20.527102"]]
|
31561
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31562
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
31563
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = '2cl5oi' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
31564
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
31565
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
31566
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = '2cl5oi' AND "payola_sales"."id" != 1) LIMIT 1
|
31567
|
+
[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 19:00:20.531016"]]
|
31568
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
31569
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
31570
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "payola_sales" SET "state" = 'finished' WHERE "payola_sales"."id" = 1
|
31571
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31572
|
+
[1m[35mPayola::Sale Load (0.0ms)[0m SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1 [["id", 1]]
|
31573
|
+
[1m[36mPayola::Sale Load (0.0ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1[0m [["id", 1]]
|
31574
|
+
[1m[35mPayola::Sale Load (0.0ms)[0m SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1 [["id", 1]]
|
31575
|
+
[1m[36mPayola::Sale Load (0.0ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1[0m [["id", 1]]
|
31576
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
31577
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
31578
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
31579
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-16' LIMIT 1[0m
|
31580
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 19:00:20.537621"], ["name", "Foo"], ["permalink", "foo-16"], ["price", 100], ["updated_at", "2014-11-03 19:00:20.537621"]]
|
31581
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31582
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
31583
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
31584
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
31585
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'shgq23' LIMIT 1[0m
|
31586
|
+
[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 19:00:20.540552"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "shgq23"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 19:00:20.540552"]]
|
31587
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31588
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
31589
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'shgq23' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
31590
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
31591
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
31592
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'shgq23' AND "payola_sales"."id" != 1) LIMIT 1
|
31593
|
+
[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 19:00:20.544373"]]
|
31594
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
31595
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
31596
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "payola_sales" SET "state" = 'finished' WHERE "payola_sales"."id" = 1
|
31597
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31598
|
+
[1m[35mPayola::Sale Load (0.0ms)[0m SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1 [["id", 1]]
|
31599
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
31600
|
+
[1m[35m (0.1ms)[0m begin transaction
|
31601
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
31602
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-17' LIMIT 1
|
31603
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 19:00:20.550617"], ["name", "Foo"], ["permalink", "foo-17"], ["price", 100], ["updated_at", "2014-11-03 19:00:20.550617"]]
|
31604
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
31605
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
31606
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
31607
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
31608
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'gnr1k9' LIMIT 1
|
31609
|
+
[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 19:00:20.553423"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "gnr1k9"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 19:00:20.553423"]]
|
31610
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
31611
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
31612
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'gnr1k9' AND "payola_sales"."id" != 1) LIMIT 1
|
31613
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31614
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
31615
|
+
[1m[36mPayola::Sale Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'gnr1k9' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
31616
|
+
[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 19:00:20.557611"]]
|
31617
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31618
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
31619
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "payola_sales" SET "state" = 'finished' WHERE "payola_sales"."id" = 1[0m
|
31620
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
31621
|
+
[1m[36mPayola::Sale Load (0.1ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1[0m [["id", 1]]
|
31622
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
31623
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
31624
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
31625
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-18' LIMIT 1[0m
|
31626
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 19:00:20.565289"], ["name", "Foo"], ["permalink", "foo-18"], ["price", 100], ["updated_at", "2014-11-03 19:00:20.565289"]]
|
31627
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31628
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
31629
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
31630
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
31631
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = '2pap1p' LIMIT 1[0m
|
31632
|
+
[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 19:00:20.567955"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "2pap1p"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 19:00:20.567955"]]
|
31633
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31634
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
31635
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = '2pap1p' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
31636
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
31637
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
31638
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = '2pap1p' AND "payola_sales"."id" != 1) LIMIT 1
|
31639
|
+
[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 19:00:20.571366"]]
|
31640
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
31641
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
31642
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "payola_sales" SET "state" = 'errored' WHERE "payola_sales"."id" = 1
|
31643
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31644
|
+
[1m[35mPayola::Sale Load (0.0ms)[0m SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1 [["id", 1]]
|
31645
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
31646
|
+
[1m[35m (0.1ms)[0m begin transaction
|
31647
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
31648
|
+
[1m[35m (0.1ms)[0m begin transaction
|
31649
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
31650
|
+
[1m[35m (0.0ms)[0m begin transaction
|
31651
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
31652
|
+
[1m[35m (0.0ms)[0m begin transaction
|
31653
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
31654
|
+
[1m[35m (0.0ms)[0m begin transaction
|
31655
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
31656
|
+
[1m[35m (0.0ms)[0m begin transaction
|
31657
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
31658
|
+
[1m[35m (0.1ms)[0m begin transaction
|
31659
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
31660
|
+
[1m[35m (0.0ms)[0m begin transaction
|
31661
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
31662
|
+
[1m[35m (0.0ms)[0m begin transaction
|
31663
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
31664
|
+
[1m[35m (0.0ms)[0m begin transaction
|
31665
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
31666
|
+
[1m[35m (0.0ms)[0m begin transaction
|
31667
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
31668
|
+
[1m[35m (0.0ms)[0m begin transaction
|
31669
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
31670
|
+
[1m[35m (0.0ms)[0m begin transaction
|
31671
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
31672
|
+
[1m[35m (0.0ms)[0m begin transaction
|
31673
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
31674
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-19' LIMIT 1
|
31675
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 19:00:20.655898"], ["name", "Foo"], ["permalink", "foo-19"], ["price", 100], ["updated_at", "2014-11-03 19:00:20.655898"]]
|
31676
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
31677
|
+
Processing by Payola::TransactionsController#status as HTML
|
31678
|
+
Parameters: {"guid"=>"doesnotexist"}
|
31679
|
+
[1m[36mPayola::Sale Load (0.1ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."guid" = 'doesnotexist' ORDER BY "payola_sales"."id" ASC LIMIT 1[0m
|
31680
|
+
Completed 404 Not Found in 6ms (Views: 4.8ms | ActiveRecord: 0.1ms)
|
31681
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
31682
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
31683
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
31684
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-20' LIMIT 1[0m
|
31685
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 19:00:20.669530"], ["name", "Foo"], ["permalink", "foo-20"], ["price", 100], ["updated_at", "2014-11-03 19:00:20.669530"]]
|
31686
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31687
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
31688
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-21' LIMIT 1[0m
|
31689
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 19:00:20.671557"], ["name", "Foo"], ["permalink", "foo-21"], ["price", 100], ["updated_at", "2014-11-03 19:00:20.671557"]]
|
31690
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31691
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
31692
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
31693
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
31694
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = '450fq9' LIMIT 1[0m
|
31695
|
+
[1m[35mSQL (0.2ms)[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 19:00:20.673989"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "450fq9"], ["product_id", 2], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 19:00:20.673989"]]
|
31696
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31697
|
+
Processing by Payola::TransactionsController#status as HTML
|
31698
|
+
Parameters: {"guid"=>"450fq9"}
|
31699
|
+
[1m[35mPayola::Sale Load (0.1ms)[0m SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."guid" = '450fq9' ORDER BY "payola_sales"."id" ASC LIMIT 1
|
31700
|
+
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
31701
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
31702
|
+
[1m[35m (0.1ms)[0m begin transaction
|
31703
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
31704
|
+
[1m[35mProduct Exists (0.2ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-22' LIMIT 1
|
31705
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 19:00:20.682638"], ["name", "Foo"], ["permalink", "foo-22"], ["price", 100], ["updated_at", "2014-11-03 19:00:20.682638"]]
|
31706
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
31707
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
31708
|
+
[1m[35mProduct Exists (0.0ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-23' LIMIT 1
|
31709
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 19:00:20.684673"], ["name", "Foo"], ["permalink", "foo-23"], ["price", 100], ["updated_at", "2014-11-03 19:00:20.684673"]]
|
31710
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
31711
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
31712
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
31713
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
31714
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = '22ic6o' LIMIT 1
|
31715
|
+
[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 19:00:20.687125"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "22ic6o"], ["product_id", 2], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 19:00:20.687125"]]
|
31716
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
31717
|
+
Processing by Payola::TransactionsController#show as HTML
|
31718
|
+
Parameters: {"guid"=>"22ic6o"}
|
31719
|
+
[1m[36mPayola::Sale Load (0.1ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."guid" = '22ic6o' LIMIT 1[0m
|
31720
|
+
[1m[35mProduct Load (0.1ms)[0m SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1 [["id", 2]]
|
31721
|
+
Redirected to http://test.host/
|
31722
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.2ms)
|
31723
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
31724
|
+
[1m[35m (0.1ms)[0m begin transaction
|
31725
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
31726
|
+
[1m[35mProduct Exists (0.2ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-24' LIMIT 1
|
31727
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 19:00:20.698061"], ["name", "Foo"], ["permalink", "foo-24"], ["price", 100], ["updated_at", "2014-11-03 19:00:20.698061"]]
|
31728
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
31729
|
+
Processing by Payola::TransactionsController#create as HTML
|
31730
|
+
Parameters: {"product_class"=>"product", "permalink"=>"foo-24"}
|
31731
|
+
[1m[36mProduct Load (0.1ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."permalink" = 'foo-24' LIMIT 1[0m
|
31732
|
+
[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
|
31733
|
+
[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
|
31734
|
+
Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 0.7ms)
|
31735
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
31736
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
31737
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
31738
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-25' LIMIT 1[0m
|
31739
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 19:00:20.714320"], ["name", "Foo"], ["permalink", "foo-25"], ["price", 100], ["updated_at", "2014-11-03 19:00:20.714320"]]
|
31740
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31741
|
+
Processing by Payola::TransactionsController#create as HTML
|
31742
|
+
Parameters: {"product_class"=>"product", "permalink"=>"foo-25"}
|
31743
|
+
[1m[35mProduct Load (0.1ms)[0m SELECT "products".* FROM "products" WHERE "products"."permalink" = 'foo-25' LIMIT 1
|
31744
|
+
[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
|
31745
|
+
[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
|
31746
|
+
Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
|
31747
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
31748
|
+
[1m[35m (0.0ms)[0m begin transaction
|
31749
|
+
[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
|
31750
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
31751
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
31752
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
31753
|
+
[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
|
31754
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "payola_stripe_webhooks" ("created_at", "stripe_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-03 19:00:20.727396"], ["stripe_id", "test_id"], ["updated_at", "2014-11-03 19:00:20.727396"]]
|
31755
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31756
|
+
[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
|
31757
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
31758
|
+
[1m[35m (0.1ms)[0m begin transaction
|
31759
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
31760
|
+
[1m[35m (0.1ms)[0m begin transaction
|
31761
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
31762
|
+
[1m[35m (0.0ms)[0m begin transaction
|
31763
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
31764
|
+
[1m[35m (0.0ms)[0m begin transaction
|
31765
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
31766
|
+
[1m[35m (0.0ms)[0m begin transaction
|
31767
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
31768
|
+
[1m[35m (0.0ms)[0m begin transaction
|
31769
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
31770
|
+
[1m[35m (0.0ms)[0m begin transaction
|
31771
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
31772
|
+
[1m[35m (0.0ms)[0m begin transaction
|
31773
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
31774
|
+
[1m[35m (0.0ms)[0m begin transaction
|
31775
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
31776
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-26' LIMIT 1
|
31777
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 19:00:20.749272"], ["name", "Foo"], ["permalink", "foo-26"], ["price", 100], ["updated_at", "2014-11-03 19:00:20.749272"]]
|
31778
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
31779
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
31780
|
+
[1m[35m (0.0ms)[0m begin transaction
|
31781
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
31782
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-27' LIMIT 1
|
31783
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 19:00:20.752925"], ["name", "Foo"], ["permalink", "foo-27"], ["price", 100], ["updated_at", "2014-11-03 19:00:20.752925"]]
|
31784
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
31785
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
31786
|
+
[1m[35mPayola::Affiliate Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_affiliates" WHERE "payola_affiliates"."code" = 'MyString' LIMIT 1
|
31787
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "payola_affiliates" ("code", "created_at", "email", "percent", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["code", "MyString"], ["created_at", "2014-11-03 19:00:20.758988"], ["email", "foo@example.com"], ["percent", 100], ["updated_at", "2014-11-03 19:00:20.758988"]]
|
31788
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
31789
|
+
[1m[36mPayola::Affiliate Load (0.1ms)[0m [1mSELECT "payola_affiliates".* FROM "payola_affiliates" WHERE "payola_affiliates"."id" = ? LIMIT 1[0m [["id", 1]]
|
31790
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
31791
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
31792
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
31793
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-28' LIMIT 1[0m
|
31794
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 19:00:20.768404"], ["name", "Foo"], ["permalink", "foo-28"], ["price", 100], ["updated_at", "2014-11-03 19:00:20.768404"]]
|
31795
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31796
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
31797
|
+
[1m[36mPayola::Coupon Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_coupons" WHERE "payola_coupons"."code" = 'MyString' LIMIT 1[0m
|
31798
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "payola_coupons" ("code", "created_at", "percent_off", "updated_at") VALUES (?, ?, ?, ?) [["code", "MyString"], ["created_at", "2014-11-03 19:00:20.818319"], ["percent_off", 1], ["updated_at", "2014-11-03 19:00:20.818319"]]
|
31799
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31800
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
31801
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
31802
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
31803
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-29' LIMIT 1[0m
|
31804
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 19:00:20.825133"], ["name", "Foo"], ["permalink", "foo-29"], ["price", 100], ["updated_at", "2014-11-03 19:00:20.825133"]]
|
31805
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31806
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
31807
|
+
[1m[36mPayola::Coupon Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_coupons" WHERE "payola_coupons"."code" = 'MyString' LIMIT 1[0m
|
31808
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "payola_coupons" ("code", "created_at", "percent_off", "updated_at") VALUES (?, ?, ?, ?) [["code", "MyString"], ["created_at", "2014-11-03 19:00:20.827289"], ["percent_off", 1], ["updated_at", "2014-11-03 19:00:20.827289"]]
|
31809
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31810
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
31811
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "owners" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
31812
|
+
[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)
|
31813
|
+
[1m[36m (0.9ms)[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
|
31814
|
+
[1m[35m (0.9ms)[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))
|
31815
|
+
[1m[36m (0.2ms)[0m [1mselect sqlite_version(*)[0m
|
31816
|
+
[1m[35m (1.0ms)[0m CREATE INDEX "index_payola_sales_on_coupon_id" ON "payola_sales" ("coupon_id")
|
31817
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
31818
|
+
FROM sqlite_master
|
31819
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
31820
|
+
UNION ALL
|
31821
|
+
SELECT sql
|
31822
|
+
FROM sqlite_temp_master
|
31823
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
31824
|
+
[0m
|
31825
|
+
[1m[35m (0.7ms)[0m CREATE INDEX "index_payola_sales_on_email" ON "payola_sales" ("email")
|
31826
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
31827
|
+
FROM sqlite_master
|
31828
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
31829
|
+
UNION ALL
|
31830
|
+
SELECT sql
|
31831
|
+
FROM sqlite_temp_master
|
31832
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
31833
|
+
[0m
|
31834
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
31835
|
+
FROM sqlite_master
|
31836
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
31837
|
+
UNION ALL
|
31838
|
+
SELECT sql
|
31839
|
+
FROM sqlite_temp_master
|
31840
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
31841
|
+
|
31842
|
+
[1m[36m (0.7ms)[0m [1mCREATE INDEX "index_payola_sales_on_guid" ON "payola_sales" ("guid")[0m
|
31843
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
31844
|
+
FROM sqlite_master
|
31845
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
31846
|
+
UNION ALL
|
31847
|
+
SELECT sql
|
31848
|
+
FROM sqlite_temp_master
|
31849
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
31850
|
+
|
31851
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
31852
|
+
FROM sqlite_master
|
31853
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
31854
|
+
UNION ALL
|
31855
|
+
SELECT sql
|
31856
|
+
FROM sqlite_temp_master
|
31857
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
31858
|
+
[0m
|
31859
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
31860
|
+
FROM sqlite_master
|
31861
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
31862
|
+
UNION ALL
|
31863
|
+
SELECT sql
|
31864
|
+
FROM sqlite_temp_master
|
31865
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
31866
|
+
|
31867
|
+
[1m[36m (1.0ms)[0m [1mCREATE INDEX "index_payola_sales_on_owner_id_and_owner_type" ON "payola_sales" ("owner_id", "owner_type")[0m
|
31868
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
31869
|
+
FROM sqlite_master
|
31870
|
+
WHERE name='index_payola_sales_on_owner_id_and_owner_type' AND type='index'
|
31871
|
+
UNION ALL
|
31872
|
+
SELECT sql
|
31873
|
+
FROM sqlite_temp_master
|
31874
|
+
WHERE name='index_payola_sales_on_owner_id_and_owner_type' AND type='index'
|
31875
|
+
|
31876
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
31877
|
+
FROM sqlite_master
|
31878
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
31879
|
+
UNION ALL
|
31880
|
+
SELECT sql
|
31881
|
+
FROM sqlite_temp_master
|
31882
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
31883
|
+
[0m
|
31884
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
31885
|
+
FROM sqlite_master
|
31886
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
31887
|
+
UNION ALL
|
31888
|
+
SELECT sql
|
31889
|
+
FROM sqlite_temp_master
|
31890
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
31891
|
+
|
31892
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
31893
|
+
FROM sqlite_master
|
31894
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
31895
|
+
UNION ALL
|
31896
|
+
SELECT sql
|
31897
|
+
FROM sqlite_temp_master
|
31898
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
31899
|
+
[0m
|
31900
|
+
[1m[35m (0.9ms)[0m CREATE INDEX "index_payola_sales_on_product" ON "payola_sales" ("product_id", "product_type")
|
31901
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
31902
|
+
FROM sqlite_master
|
31903
|
+
WHERE name='index_payola_sales_on_product' AND type='index'
|
31904
|
+
UNION ALL
|
31905
|
+
SELECT sql
|
31906
|
+
FROM sqlite_temp_master
|
31907
|
+
WHERE name='index_payola_sales_on_product' AND type='index'
|
31908
|
+
[0m
|
31909
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
31910
|
+
FROM sqlite_master
|
31911
|
+
WHERE name='index_payola_sales_on_owner_id_and_owner_type' AND type='index'
|
31912
|
+
UNION ALL
|
31913
|
+
SELECT sql
|
31914
|
+
FROM sqlite_temp_master
|
31915
|
+
WHERE name='index_payola_sales_on_owner_id_and_owner_type' AND type='index'
|
31916
|
+
|
31917
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
31918
|
+
FROM sqlite_master
|
31919
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
31920
|
+
UNION ALL
|
31921
|
+
SELECT sql
|
31922
|
+
FROM sqlite_temp_master
|
31923
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
31924
|
+
[0m
|
31925
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
31926
|
+
FROM sqlite_master
|
31927
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
31928
|
+
UNION ALL
|
31929
|
+
SELECT sql
|
31930
|
+
FROM sqlite_temp_master
|
31931
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
31932
|
+
|
31933
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
31934
|
+
FROM sqlite_master
|
31935
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
31936
|
+
UNION ALL
|
31937
|
+
SELECT sql
|
31938
|
+
FROM sqlite_temp_master
|
31939
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
31940
|
+
[0m
|
31941
|
+
[1m[35m (0.9ms)[0m CREATE INDEX "index_payola_sales_on_stripe_customer_id" ON "payola_sales" ("stripe_customer_id")
|
31942
|
+
[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
|
31943
|
+
[1m[35m (0.8ms)[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)
|
31944
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
31945
|
+
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
31946
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
31947
|
+
[1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141029140518')
|
31948
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141001230848')[0m
|
31949
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141001170138')
|
31950
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141001203541')[0m
|
31951
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141002013618')
|
31952
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141002013701')[0m
|
31953
|
+
[1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141002203725')
|
31954
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141017233304')[0m
|
31955
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141026101628')
|
31956
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141026144800')[0m
|
31957
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141029135848')
|
31958
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
31959
|
+
[1m[35m (0.1ms)[0m begin transaction
|
31960
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
31961
|
+
[1m[35m (0.1ms)[0m begin transaction
|
31962
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
31963
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-1' LIMIT 1
|
31964
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:16:39.610155"], ["name", "Foo"], ["permalink", "foo-1"], ["price", 100], ["updated_at", "2014-11-03 21:16:39.610155"]]
|
31965
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
31966
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
31967
|
+
[1m[35m (0.1ms)[0m begin transaction
|
31968
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
31969
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-2' LIMIT 1
|
31970
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:16:39.644276"], ["name", "Foo"], ["permalink", "foo-2"], ["price", 100], ["updated_at", "2014-11-03 21:16:39.644276"]]
|
31971
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
31972
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
31973
|
+
[1m[35mPayola::Affiliate Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_affiliates" WHERE "payola_affiliates"."code" = 'MyString' LIMIT 1
|
31974
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "payola_affiliates" ("code", "created_at", "email", "percent", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["code", "MyString"], ["created_at", "2014-11-03 21:16:39.654535"], ["email", "foo@example.com"], ["percent", 100], ["updated_at", "2014-11-03 21:16:39.654535"]]
|
31975
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
31976
|
+
[1m[36mPayola::Affiliate Load (0.1ms)[0m [1mSELECT "payola_affiliates".* FROM "payola_affiliates" WHERE "payola_affiliates"."id" = ? LIMIT 1[0m [["id", 1]]
|
31977
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
31978
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
31979
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
31980
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-3' LIMIT 1[0m
|
31981
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:16:39.701638"], ["name", "Foo"], ["permalink", "foo-3"], ["price", 100], ["updated_at", "2014-11-03 21:16:39.701638"]]
|
31982
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31983
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
31984
|
+
[1m[36mPayola::Coupon Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_coupons" WHERE "payola_coupons"."code" = 'MyString' LIMIT 1[0m
|
31985
|
+
[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:16:39.712523"], ["percent_off", 1], ["updated_at", "2014-11-03 21:16:39.712523"]]
|
31986
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31987
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
31988
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
31989
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
31990
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-4' LIMIT 1[0m
|
31991
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:16:39.718452"], ["name", "Foo"], ["permalink", "foo-4"], ["price", 100], ["updated_at", "2014-11-03 21:16:39.718452"]]
|
31992
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31993
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
31994
|
+
[1m[36mPayola::Coupon Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_coupons" WHERE "payola_coupons"."code" = 'MyString' LIMIT 1[0m
|
31995
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "payola_coupons" ("code", "created_at", "percent_off", "updated_at") VALUES (?, ?, ?, ?) [["code", "MyString"], ["created_at", "2014-11-03 21:16:39.720208"], ["percent_off", 1], ["updated_at", "2014-11-03 21:16:39.720208"]]
|
31996
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31997
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
31998
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
31999
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
32000
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32001
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
32002
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
32003
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
32004
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-5' LIMIT 1[0m
|
32005
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:16:39.731572"], ["name", "Foo"], ["permalink", "foo-5"], ["price", 100], ["updated_at", "2014-11-03 21:16:39.731572"]]
|
32006
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32007
|
+
Processing by Payola::TransactionsController#status as HTML
|
32008
|
+
Parameters: {"guid"=>"doesnotexist"}
|
32009
|
+
[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
|
32010
|
+
Rendered text template (0.0ms)
|
32011
|
+
Completed 404 Not Found in 17ms (Views: 10.0ms | ActiveRecord: 0.2ms)
|
32012
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
32013
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32014
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32015
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-6' LIMIT 1
|
32016
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:16:39.756510"], ["name", "Foo"], ["permalink", "foo-6"], ["price", 100], ["updated_at", "2014-11-03 21:16:39.756510"]]
|
32017
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32018
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32019
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-7' LIMIT 1
|
32020
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:16:39.759145"], ["name", "Foo"], ["permalink", "foo-7"], ["price", 100], ["updated_at", "2014-11-03 21:16:39.759145"]]
|
32021
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32022
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32023
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
32024
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
32025
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'mmsrc6' LIMIT 1
|
32026
|
+
[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:16:39.762401"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "mmsrc6"], ["product_id", 2], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:16:39.762401"]]
|
32027
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32028
|
+
Processing by Payola::TransactionsController#status as HTML
|
32029
|
+
Parameters: {"guid"=>"mmsrc6"}
|
32030
|
+
[1m[36mPayola::Sale Load (0.1ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."guid" = 'mmsrc6' ORDER BY "payola_sales"."id" ASC LIMIT 1[0m
|
32031
|
+
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
32032
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
32033
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32034
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32035
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-8' LIMIT 1[0m
|
32036
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:16:39.769708"], ["name", "Foo"], ["permalink", "foo-8"], ["price", 100], ["updated_at", "2014-11-03 21:16:39.769708"]]
|
32037
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32038
|
+
Processing by Payola::TransactionsController#create as HTML
|
32039
|
+
Parameters: {"product_class"=>"product", "permalink"=>"foo-8"}
|
32040
|
+
[1m[35mProduct Load (0.1ms)[0m SELECT "products".* FROM "products" WHERE "products"."permalink" = 'foo-8' LIMIT 1
|
32041
|
+
[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
|
32042
|
+
[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
|
32043
|
+
Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.2ms)
|
32044
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
32045
|
+
[1m[35m (0.1ms)[0m begin transaction
|
32046
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32047
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-9' LIMIT 1
|
32048
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:16:39.779725"], ["name", "Foo"], ["permalink", "foo-9"], ["price", 100], ["updated_at", "2014-11-03 21:16:39.779725"]]
|
32049
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32050
|
+
Processing by Payola::TransactionsController#create as HTML
|
32051
|
+
Parameters: {"product_class"=>"product", "permalink"=>"foo-9"}
|
32052
|
+
[1m[36mProduct Load (0.1ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."permalink" = 'foo-9' LIMIT 1[0m
|
32053
|
+
[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
|
32054
|
+
[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
|
32055
|
+
Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
|
32056
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
32057
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32058
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
32059
|
+
[1m[36mProduct Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-10' LIMIT 1[0m
|
32060
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:16:39.788717"], ["name", "Foo"], ["permalink", "foo-10"], ["price", 100], ["updated_at", "2014-11-03 21:16:39.788717"]]
|
32061
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32062
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
32063
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-11' LIMIT 1[0m
|
32064
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:16:39.792088"], ["name", "Foo"], ["permalink", "foo-11"], ["price", 100], ["updated_at", "2014-11-03 21:16:39.792088"]]
|
32065
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32066
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32067
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
32068
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
32069
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'jhrrqa' LIMIT 1[0m
|
32070
|
+
[1m[35mSQL (0.2ms)[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:16:39.796167"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "jhrrqa"], ["product_id", 2], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:16:39.796167"]]
|
32071
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32072
|
+
Processing by Payola::TransactionsController#show as HTML
|
32073
|
+
Parameters: {"guid"=>"jhrrqa"}
|
32074
|
+
[1m[35mPayola::Sale Load (0.2ms)[0m SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."guid" = 'jhrrqa' LIMIT 1
|
32075
|
+
[1m[36mProduct Load (0.1ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1[0m [["id", 2]]
|
32076
|
+
Redirected to http://test.host/
|
32077
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
|
32078
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
32079
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
32080
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32081
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32082
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
32083
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32084
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
32085
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32086
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
32087
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32088
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
32089
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32090
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
32091
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32092
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
32093
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-12' LIMIT 1[0m
|
32094
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:16:39.815282"], ["name", "Foo"], ["permalink", "foo-12"], ["price", 100], ["updated_at", "2014-11-03 21:16:39.815282"]]
|
32095
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32096
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32097
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
32098
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
32099
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'cnqsa2' LIMIT 1[0m
|
32100
|
+
[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:16:39.818088"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "cnqsa2"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:16:39.818088"]]
|
32101
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32102
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32103
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "state" = 'errored' WHERE "payola_sales"."id" = 1[0m
|
32104
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32105
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
32106
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32107
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32108
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-13' LIMIT 1
|
32109
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:16:39.824164"], ["name", "Foo"], ["permalink", "foo-13"], ["price", 100], ["updated_at", "2014-11-03 21:16:39.824164"]]
|
32110
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32111
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32112
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
32113
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
32114
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = '5p6b7r' LIMIT 1
|
32115
|
+
[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:16:39.827069"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "5p6b7r"], ["product_id", 1], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:16:39.827069"]]
|
32116
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32117
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = '5p6b7r' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
32118
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
32119
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-14' LIMIT 1[0m
|
32120
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:16:39.875682"], ["name", "Foo"], ["permalink", "foo-14"], ["price", 100], ["updated_at", "2014-11-03 21:16:39.875682"]]
|
32121
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32122
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = '5p6b7r' LIMIT 1
|
32123
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
32124
|
+
[1m[35m (0.1ms)[0m begin transaction
|
32125
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32126
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-15' LIMIT 1
|
32127
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:16:39.892630"], ["name", "Foo"], ["permalink", "foo-15"], ["price", 100], ["updated_at", "2014-11-03 21:16:39.892630"]]
|
32128
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32129
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32130
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
32131
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
32132
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'p4bpu7' LIMIT 1
|
32133
|
+
[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:16:39.895345"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "p4bpu7"], ["product_id", 1], ["product_type", "Product"], ["state", "finished"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:16:39.895345"]]
|
32134
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32135
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32136
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "payola_sales" SET "state" = 'refunded' WHERE "payola_sales"."id" = 1
|
32137
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32138
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
32139
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32140
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
32141
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-16' LIMIT 1[0m
|
32142
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:16:39.901750"], ["name", "Foo"], ["permalink", "foo-16"], ["price", 100], ["updated_at", "2014-11-03 21:16:39.901750"]]
|
32143
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32144
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32145
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
32146
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
32147
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'a2rmqh' LIMIT 1[0m
|
32148
|
+
[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:16:39.904528"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "a2rmqh"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:16:39.904528"]]
|
32149
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32150
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32151
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "state" = 'finished' WHERE "payola_sales"."id" = 1[0m
|
32152
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32153
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
32154
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32155
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32156
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-17' LIMIT 1
|
32157
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:16:39.910460"], ["name", "Foo"], ["permalink", "foo-17"], ["price", 100], ["updated_at", "2014-11-03 21:16:39.910460"]]
|
32158
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32159
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32160
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
32161
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
32162
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'flpvs8' LIMIT 1
|
32163
|
+
[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:16:39.914189"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "flpvs8"], ["product_id", 1], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:16:39.914189"]]
|
32164
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
32165
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
32166
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "payola_sales" SET "state" = 'processing' WHERE "payola_sales"."id" = 1
|
32167
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32168
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
32169
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
32170
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
32171
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-18' LIMIT 1[0m
|
32172
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:16:39.921879"], ["name", "Foo"], ["permalink", "foo-18"], ["price", 100], ["updated_at", "2014-11-03 21:16:39.921879"]]
|
32173
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32174
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
32175
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
32176
|
+
[1m[35m (0.1ms)[0m begin transaction
|
32177
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32178
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-19' LIMIT 1
|
32179
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:16:39.928018"], ["name", "Foo"], ["permalink", "foo-19"], ["price", 100], ["updated_at", "2014-11-03 21:16:39.928018"]]
|
32180
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32181
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
32182
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
32183
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32184
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32185
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-20' LIMIT 1[0m
|
32186
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:16:39.932674"], ["name", "Foo"], ["permalink", "foo-20"], ["price", 100], ["updated_at", "2014-11-03 21:16:39.932674"]]
|
32187
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32188
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
32189
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
32190
|
+
[1m[35m (0.1ms)[0m begin transaction
|
32191
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
32192
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32193
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32194
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
32195
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-21' LIMIT 1[0m
|
32196
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:16:39.940832"], ["name", "Foo"], ["permalink", "foo-21"], ["price", 100], ["updated_at", "2014-11-03 21:16:39.940832"]]
|
32197
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32198
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32199
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
32200
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
32201
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'ra3jv6' LIMIT 1[0m
|
32202
|
+
[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:16:39.943509"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "ra3jv6"], ["product_id", 1], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:16:39.943509"]]
|
32203
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32204
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32205
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'ra3jv6' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
32206
|
+
[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:16:39.945338"]]
|
32207
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32208
|
+
[1m[35mPayola::Sale Load (0.1ms)[0m SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1 [["id", 1]]
|
32209
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
32210
|
+
[1m[35m (0.1ms)[0m begin transaction
|
32211
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
32212
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-22' LIMIT 1
|
32213
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:16:39.950917"], ["name", "Foo"], ["permalink", "foo-22"], ["price", 100], ["updated_at", "2014-11-03 21:16:39.950917"]]
|
32214
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
32215
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32216
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
32217
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
32218
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'ga4vf5' LIMIT 1
|
32219
|
+
[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:16:39.954806"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "ga4vf5"], ["product_id", 1], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:16:39.954806"]]
|
32220
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32221
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32222
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "owners" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-11-03 21:16:39.958846"], ["updated_at", "2014-11-03 21:16:39.958846"]]
|
32223
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32224
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32225
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'ga4vf5' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
32226
|
+
[1m[35mSQL (0.1ms)[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:16:39.963045"]]
|
32227
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32228
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
32229
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
32230
|
+
[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
|
32231
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32232
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32233
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32234
|
+
[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
|
32235
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "payola_stripe_webhooks" ("created_at", "stripe_id", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-03 21:16:39.972309"], ["stripe_id", "test_id"], ["updated_at", "2014-11-03 21:16:39.972309"]]
|
32236
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32237
|
+
[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
|
32238
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
32239
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
32240
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
32241
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32242
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
32243
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32244
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32245
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
32246
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32247
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
32248
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32249
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
32250
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32251
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32252
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32253
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32254
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
32255
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32256
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
32257
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32258
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
32259
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32260
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
32261
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32262
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
32263
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32264
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
32265
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32266
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
32267
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32268
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-24' LIMIT 1
|
32269
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32270
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32271
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-25' LIMIT 1[0m
|
32272
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
32273
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32274
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'f' LIMIT 1
|
32275
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32276
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32277
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
32278
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32279
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
32280
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32281
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
32282
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32283
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
32284
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32285
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32286
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-26' LIMIT 1
|
32287
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:16:40.019776"], ["name", "Foo"], ["permalink", "foo-26"], ["price", 100], ["updated_at", "2014-11-03 21:16:40.019776"]]
|
32288
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32289
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32290
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
32291
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
32292
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'io708n' LIMIT 1
|
32293
|
+
[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:16:40.022473"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "io708n"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:16:40.022473"]]
|
32294
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32295
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32296
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'io708n' AND "payola_sales"."id" != 1) LIMIT 1
|
32297
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32298
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32299
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'io708n' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
32300
|
+
[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:16:40.026468"]]
|
32301
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32302
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32303
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "state" = 'finished' WHERE "payola_sales"."id" = 1[0m
|
32304
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32305
|
+
[1m[36mPayola::Sale Load (0.0ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1[0m [["id", 1]]
|
32306
|
+
[1m[35mPayola::Sale Load (0.0ms)[0m SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1 [["id", 1]]
|
32307
|
+
[1m[36mPayola::Sale Load (0.0ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1[0m [["id", 1]]
|
32308
|
+
[1m[35mPayola::Sale Load (0.0ms)[0m SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1 [["id", 1]]
|
32309
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
32310
|
+
[1m[35m (0.1ms)[0m begin transaction
|
32311
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
32312
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-27' LIMIT 1
|
32313
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:16:40.032809"], ["name", "Foo"], ["permalink", "foo-27"], ["price", 100], ["updated_at", "2014-11-03 21:16:40.032809"]]
|
32314
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32315
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32316
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
32317
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
32318
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = '8p76q4' LIMIT 1
|
32319
|
+
[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:16:40.035471"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "8p76q4"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:16:40.035471"]]
|
32320
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32321
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
32322
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = '8p76q4' AND "payola_sales"."id" != 1) LIMIT 1
|
32323
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32324
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
32325
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = '8p76q4' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
32326
|
+
[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:16:40.041395"]]
|
32327
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32328
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
32329
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "state" = 'finished' WHERE "payola_sales"."id" = 1[0m
|
32330
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
32331
|
+
[1m[36mPayola::Sale Load (0.1ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1[0m [["id", 1]]
|
32332
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
32333
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
32334
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32335
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-28' LIMIT 1[0m
|
32336
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-03 21:16:40.047992"], ["name", "Foo"], ["permalink", "foo-28"], ["price", 100], ["updated_at", "2014-11-03 21:16:40.047992"]]
|
32337
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32338
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32339
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
32340
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
32341
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'efkesc' LIMIT 1[0m
|
32342
|
+
[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:16:40.051107"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "efkesc"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:16:40.051107"]]
|
32343
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32344
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32345
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'efkesc' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
32346
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32347
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32348
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'efkesc' AND "payola_sales"."id" != 1) LIMIT 1
|
32349
|
+
[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:16:40.055112"]]
|
32350
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32351
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
32352
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "payola_sales" SET "state" = 'finished' WHERE "payola_sales"."id" = 1
|
32353
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32354
|
+
[1m[35mPayola::Sale Load (0.0ms)[0m SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1 [["id", 1]]
|
32355
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
32356
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32357
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32358
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-29' LIMIT 1
|
32359
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-03 21:16:40.061015"], ["name", "Foo"], ["permalink", "foo-29"], ["price", 100], ["updated_at", "2014-11-03 21:16:40.061015"]]
|
32360
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32361
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32362
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
32363
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
32364
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = '6ge8f0' LIMIT 1
|
32365
|
+
[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:16:40.063585"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "6ge8f0"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-03 21:16:40.063585"]]
|
32366
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32367
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32368
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = '6ge8f0' AND "payola_sales"."id" != 1) LIMIT 1
|
32369
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32370
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32371
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = '6ge8f0' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
32372
|
+
[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:16:40.067612"]]
|
32373
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32374
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
32375
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "state" = 'errored' WHERE "payola_sales"."id" = 1[0m
|
32376
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32377
|
+
[1m[36mPayola::Sale Load (0.0ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1[0m [["id", 1]]
|
32378
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
32379
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
32380
|
+
[1m[35m (0.1ms)[0m rollback transaction
|