payola-payments 0.2.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/app/assets/javascripts/payola/checkout_button.js +6 -3
- data/app/models/payola/sale.rb +10 -1
- data/app/services/payola/charge_card.rb +5 -0
- data/app/views/payola/transactions/_checkout.html.erb +3 -7
- data/lib/payola.rb +11 -3
- data/lib/payola/version.rb +1 -1
- data/spec/dummy/log/development.log +200 -0
- data/spec/dummy/log/test.log +568 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZjY2NGI3ZTRmZjljN2FhMTE4ZjM4OGMzZDAwNGM0YzE0ZGRjNGM1Nw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YThmYTA0MzcyNzVmY2NjZWRmM2FlNGU5NzhhOTg1YjkwMmQyNDlmNQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZTVlOTg0OTk4YTgyYWZiMmM4Y2FkYWI3YTVjMjUyOTRiOGEwYjM3ZjlhODQw
|
10
|
+
MjljN2FmZTViYzVkODVhMGI0ZWZiYzQ0MWVjNzFkZDVhOWRmNzY5ZjA5Mzhi
|
11
|
+
OWVmMGMxNjc5YmI4OGM3ZTQ1N2U3ZDVkYjcyNjYyNDljNjM1NjY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OWUzYzExOTY0YmFlNWY5MzI3NGMyYjQwMjI2ZTlhODExMTU4ZjhlMDk0ZGIx
|
14
|
+
NWJmMTdhOWM0MjQ5ZTI5N2ZjZjEzZmVmNzE2ZWNhZjNmMWI3ZGVlZGRjMTA4
|
15
|
+
ODAzZTFhYTQwYWI2Yzg5ODExZDJhMDIxNzQzMmViMzIyMjVjNWU=
|
@@ -25,9 +25,9 @@ var Payola = {
|
|
25
25
|
console.log(options.form_id);
|
26
26
|
form.append($('<input type="hidden" name="stripeToken">').val(token.id));
|
27
27
|
form.append($('<input type="hidden" name="stripeEmail">').val(token.email));
|
28
|
-
$("
|
29
|
-
$("
|
30
|
-
$("
|
28
|
+
$(".payola-checkout-button").prop("disabled", true);
|
29
|
+
$(".payola-checkout-button-text").hide();
|
30
|
+
$(".payola-checkout-button-spinner").show();
|
31
31
|
$.ajax({
|
32
32
|
type: "POST",
|
33
33
|
url: "/payola/buy/" + options.product_class + "/" + options.product_permalink,
|
@@ -41,6 +41,9 @@ var Payola = {
|
|
41
41
|
var error_div = $("#" + error_div_id);
|
42
42
|
error_div.toggle();
|
43
43
|
error_div.html(error);
|
44
|
+
$(".payola-checkout-button").prop("disabled", false);
|
45
|
+
$(".payola-checkout-button-spinner").hide();
|
46
|
+
$(".payola-checkout-button-text").show();
|
44
47
|
},
|
45
48
|
|
46
49
|
poll: function(guid, num_retries_left, error_div_id) {
|
data/app/models/payola/sale.rb
CHANGED
@@ -35,7 +35,7 @@ module Payola
|
|
35
35
|
end
|
36
36
|
|
37
37
|
event :fail, after: :instrument_fail do
|
38
|
-
transitions from: :processing, to: :errored
|
38
|
+
transitions from: [:pending, :processing], to: :errored
|
39
39
|
end
|
40
40
|
|
41
41
|
event :refund, after: :instrument_refund do
|
@@ -62,6 +62,15 @@ module Payola
|
|
62
62
|
Payola.instrument(instrument_key('refunded'), self)
|
63
63
|
end
|
64
64
|
|
65
|
+
def verify_charge
|
66
|
+
begin
|
67
|
+
Payola.charge_verifier.call(self)
|
68
|
+
rescue RuntimeError => e
|
69
|
+
self.error = e.message
|
70
|
+
self.fail!
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
65
74
|
def product_class
|
66
75
|
product.product_class
|
67
76
|
end
|
@@ -5,6 +5,8 @@ module Payola
|
|
5
5
|
secret_key = Payola.secret_key_for_sale(sale)
|
6
6
|
|
7
7
|
begin
|
8
|
+
Payola.charge_verifier.call(sale)
|
9
|
+
|
8
10
|
customer = Stripe::Customer.create({
|
9
11
|
card: sale.stripe_token,
|
10
12
|
email: sale.email
|
@@ -36,6 +38,9 @@ module Payola
|
|
36
38
|
rescue Stripe::StripeError => e
|
37
39
|
sale.update_attributes(error: e.message)
|
38
40
|
sale.fail!
|
41
|
+
rescue RuntimeError => e
|
42
|
+
sale.update_attributes(error: e.message)
|
43
|
+
sale.fail!
|
39
44
|
end
|
40
45
|
|
41
46
|
sale
|
@@ -13,17 +13,15 @@
|
|
13
13
|
button_id = "payola-button-#{sale.product.product_class}-#{sale.product.permalink}"
|
14
14
|
error_div_id = "#{button_id}-errors"
|
15
15
|
form_id = "#{button_id}-form"
|
16
|
-
button_text_id = "#{button_id}-span"
|
17
|
-
button_spinner_id = "#{button_id}-spinner"
|
18
16
|
%>
|
19
17
|
|
20
18
|
<script src="https://checkout.stripe.com/checkout.js"></script>
|
21
19
|
<link rel="stylesheet" href="https://checkout.stripe.com/v3/checkout/button.css"></link>
|
22
20
|
|
23
21
|
<%= form_tag payola.buy_path(product_class: sale.product.product_class, permalink: sale.product.permalink), id: form_id do %>
|
24
|
-
<button class="<%= button_class %>" id="<%= button_id %>">
|
25
|
-
<span
|
26
|
-
<span
|
22
|
+
<button class="<%= button_class %> payola-checkout-button" id="<%= button_id %>">
|
23
|
+
<span class="payola-checkout-button-text" style="display: block; <%= button_inner_style %>"><%= button_text %></span>
|
24
|
+
<span class="payola-checkout-button-spinner" style="display: none; <%= button_inner_style %>">Please wait...</span>
|
27
25
|
</button>
|
28
26
|
<div style="display:none", id="<%= error_div_id %>"></div>
|
29
27
|
<% end %>
|
@@ -31,8 +29,6 @@
|
|
31
29
|
Payola.setUpStripeCheckoutButton({
|
32
30
|
form_id: "<%= form_id %>",
|
33
31
|
button_id: "<%= button_id %>",
|
34
|
-
button_text_id: "<%= button_text_id %>",
|
35
|
-
button_spinner_id: "<%= button_spinner_id %>",
|
36
32
|
error_div_id: "<%= error_div_id %>",
|
37
33
|
product_class: "<%= sale.product.product_class %>",
|
38
34
|
product_permalink: "<%= sale.product.permalink %>",
|
data/lib/payola.rb
CHANGED
@@ -5,7 +5,14 @@ require 'jquery-rails'
|
|
5
5
|
|
6
6
|
module Payola
|
7
7
|
class << self
|
8
|
-
attr_accessor :publishable_key,
|
8
|
+
attr_accessor :publishable_key,
|
9
|
+
:secret_key,
|
10
|
+
:secret_key_retriever,
|
11
|
+
:background_worker,
|
12
|
+
:event_filter,
|
13
|
+
:support_email,
|
14
|
+
:sellables,
|
15
|
+
:charge_verifier
|
9
16
|
|
10
17
|
def configure(&block)
|
11
18
|
raise ArgumentError, "must provide a block" unless block_given?
|
@@ -43,6 +50,7 @@ module Payola
|
|
43
50
|
|
44
51
|
self.background_worker = nil
|
45
52
|
self.event_filter = lambda { |event| event }
|
53
|
+
self.charge_verifier = lambda { |event| true }
|
46
54
|
self.publishable_key = ENV['STRIPE_PUBLISHABLE_KEY']
|
47
55
|
self.secret_key = ENV['STRIPE_SECRET_KEY']
|
48
56
|
self.secret_key_retriever = lambda { |sale| Payola.secret_key }
|
@@ -59,8 +67,8 @@ module Payola
|
|
59
67
|
def self.call(params)
|
60
68
|
return nil if StripeWebhook.exists?(stripe_id: params[:id])
|
61
69
|
StripeWebhook.create!(stripe_id: params[:id])
|
62
|
-
event = Stripe::Event.retrieve(params[:id])
|
63
|
-
Payola.event_filter(event)
|
70
|
+
event = Stripe::Event.retrieve(params[:id], Payola.secret_key)
|
71
|
+
Payola.event_filter.call(event)
|
64
72
|
end
|
65
73
|
end
|
66
74
|
|
data/lib/payola/version.rb
CHANGED
@@ -7657,3 +7657,203 @@ Started GET "/assets/payola.js?body=1" for 127.0.0.1 at 2014-10-05 17:20:55 -040
|
|
7657
7657
|
|
7658
7658
|
|
7659
7659
|
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-05 17:20:55 -0400
|
7660
|
+
[1m[36m (1.3ms)[0m [1mCREATE TABLE "payola_affiliates" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar(255), "email" varchar(255), "percent" integer, "created_at" datetime, "updated_at" datetime) [0m
|
7661
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "payola_coupons" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar(255), "percent_off" integer, "created_at" datetime, "updated_at" datetime)
|
7662
|
+
[1m[36m (0.9ms)[0m [1mCREATE 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)) [0m
|
7663
|
+
[1m[35m (1.1ms)[0m select sqlite_version(*)
|
7664
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_payola_sales_on_coupon_id" ON "payola_sales" ("coupon_id")[0m
|
7665
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
7666
|
+
FROM sqlite_master
|
7667
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
7668
|
+
UNION ALL
|
7669
|
+
SELECT sql
|
7670
|
+
FROM sqlite_temp_master
|
7671
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
7672
|
+
|
7673
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_payola_sales_on_email" ON "payola_sales" ("email")[0m
|
7674
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
7675
|
+
FROM sqlite_master
|
7676
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
7677
|
+
UNION ALL
|
7678
|
+
SELECT sql
|
7679
|
+
FROM sqlite_temp_master
|
7680
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
7681
|
+
|
7682
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
7683
|
+
FROM sqlite_master
|
7684
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
7685
|
+
UNION ALL
|
7686
|
+
SELECT sql
|
7687
|
+
FROM sqlite_temp_master
|
7688
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
7689
|
+
[0m
|
7690
|
+
[1m[35m (0.8ms)[0m CREATE INDEX "index_payola_sales_on_guid" ON "payola_sales" ("guid")
|
7691
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
7692
|
+
FROM sqlite_master
|
7693
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
7694
|
+
UNION ALL
|
7695
|
+
SELECT sql
|
7696
|
+
FROM sqlite_temp_master
|
7697
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
7698
|
+
[0m
|
7699
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
7700
|
+
FROM sqlite_master
|
7701
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
7702
|
+
UNION ALL
|
7703
|
+
SELECT sql
|
7704
|
+
FROM sqlite_temp_master
|
7705
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
7706
|
+
|
7707
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
7708
|
+
FROM sqlite_master
|
7709
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
7710
|
+
UNION ALL
|
7711
|
+
SELECT sql
|
7712
|
+
FROM sqlite_temp_master
|
7713
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
7714
|
+
[0m
|
7715
|
+
[1m[35m (0.8ms)[0m CREATE INDEX "index_payola_sales_on_product" ON "payola_sales" ("product_id", "product_type")
|
7716
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
7717
|
+
FROM sqlite_master
|
7718
|
+
WHERE name='index_payola_sales_on_product' AND type='index'
|
7719
|
+
UNION ALL
|
7720
|
+
SELECT sql
|
7721
|
+
FROM sqlite_temp_master
|
7722
|
+
WHERE name='index_payola_sales_on_product' AND type='index'
|
7723
|
+
[0m
|
7724
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
7725
|
+
FROM sqlite_master
|
7726
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
7727
|
+
UNION ALL
|
7728
|
+
SELECT sql
|
7729
|
+
FROM sqlite_temp_master
|
7730
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
7731
|
+
|
7732
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
7733
|
+
FROM sqlite_master
|
7734
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
7735
|
+
UNION ALL
|
7736
|
+
SELECT sql
|
7737
|
+
FROM sqlite_temp_master
|
7738
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
7739
|
+
[0m
|
7740
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
7741
|
+
FROM sqlite_master
|
7742
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
7743
|
+
UNION ALL
|
7744
|
+
SELECT sql
|
7745
|
+
FROM sqlite_temp_master
|
7746
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
7747
|
+
|
7748
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_payola_sales_on_stripe_customer_id" ON "payola_sales" ("stripe_customer_id")[0m
|
7749
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "payola_stripe_webhooks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "stripe_id" varchar(255), "created_at" datetime, "updated_at" datetime)
|
7750
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "permalink" varchar(255), "price" integer, "created_at" datetime, "updated_at" datetime) [0m
|
7751
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
7752
|
+
[1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
7753
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
7754
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141002203725')[0m
|
7755
|
+
[1m[35m (1.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141001230848')
|
7756
|
+
[1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141001170138')[0m
|
7757
|
+
[1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141001203541')
|
7758
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141002013618')[0m
|
7759
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141002013701')
|
7760
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "payola_affiliates" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar(255), "email" varchar(255), "percent" integer, "created_at" datetime, "updated_at" datetime) [0m
|
7761
|
+
[1m[35m (0.7ms)[0m CREATE TABLE "payola_coupons" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar(255), "percent_off" integer, "created_at" datetime, "updated_at" datetime)
|
7762
|
+
[1m[36m (0.8ms)[0m [1mCREATE 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)) [0m
|
7763
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
7764
|
+
[1m[36m (1.1ms)[0m [1mCREATE INDEX "index_payola_sales_on_coupon_id" ON "payola_sales" ("coupon_id")[0m
|
7765
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
7766
|
+
FROM sqlite_master
|
7767
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
7768
|
+
UNION ALL
|
7769
|
+
SELECT sql
|
7770
|
+
FROM sqlite_temp_master
|
7771
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
7772
|
+
|
7773
|
+
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_payola_sales_on_email" ON "payola_sales" ("email")[0m
|
7774
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
7775
|
+
FROM sqlite_master
|
7776
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
7777
|
+
UNION ALL
|
7778
|
+
SELECT sql
|
7779
|
+
FROM sqlite_temp_master
|
7780
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
7781
|
+
|
7782
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
7783
|
+
FROM sqlite_master
|
7784
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
7785
|
+
UNION ALL
|
7786
|
+
SELECT sql
|
7787
|
+
FROM sqlite_temp_master
|
7788
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
7789
|
+
[0m
|
7790
|
+
[1m[35m (0.9ms)[0m CREATE INDEX "index_payola_sales_on_guid" ON "payola_sales" ("guid")
|
7791
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
7792
|
+
FROM sqlite_master
|
7793
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
7794
|
+
UNION ALL
|
7795
|
+
SELECT sql
|
7796
|
+
FROM sqlite_temp_master
|
7797
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
7798
|
+
[0m
|
7799
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
7800
|
+
FROM sqlite_master
|
7801
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
7802
|
+
UNION ALL
|
7803
|
+
SELECT sql
|
7804
|
+
FROM sqlite_temp_master
|
7805
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
7806
|
+
|
7807
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
7808
|
+
FROM sqlite_master
|
7809
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
7810
|
+
UNION ALL
|
7811
|
+
SELECT sql
|
7812
|
+
FROM sqlite_temp_master
|
7813
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
7814
|
+
[0m
|
7815
|
+
[1m[35m (0.9ms)[0m CREATE INDEX "index_payola_sales_on_product" ON "payola_sales" ("product_id", "product_type")
|
7816
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
7817
|
+
FROM sqlite_master
|
7818
|
+
WHERE name='index_payola_sales_on_product' AND type='index'
|
7819
|
+
UNION ALL
|
7820
|
+
SELECT sql
|
7821
|
+
FROM sqlite_temp_master
|
7822
|
+
WHERE name='index_payola_sales_on_product' AND type='index'
|
7823
|
+
[0m
|
7824
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
7825
|
+
FROM sqlite_master
|
7826
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
7827
|
+
UNION ALL
|
7828
|
+
SELECT sql
|
7829
|
+
FROM sqlite_temp_master
|
7830
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
7831
|
+
|
7832
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
7833
|
+
FROM sqlite_master
|
7834
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
7835
|
+
UNION ALL
|
7836
|
+
SELECT sql
|
7837
|
+
FROM sqlite_temp_master
|
7838
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
7839
|
+
[0m
|
7840
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
7841
|
+
FROM sqlite_master
|
7842
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
7843
|
+
UNION ALL
|
7844
|
+
SELECT sql
|
7845
|
+
FROM sqlite_temp_master
|
7846
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
7847
|
+
|
7848
|
+
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_payola_sales_on_stripe_customer_id" ON "payola_sales" ("stripe_customer_id")[0m
|
7849
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "payola_stripe_webhooks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "stripe_id" varchar(255), "created_at" datetime, "updated_at" datetime)
|
7850
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "permalink" varchar(255), "price" integer, "created_at" datetime, "updated_at" datetime) [0m
|
7851
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
7852
|
+
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
7853
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
7854
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141002203725')[0m
|
7855
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141001230848')
|
7856
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141001170138')[0m
|
7857
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141001203541')
|
7858
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141002013618')[0m
|
7859
|
+
[1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141002013701')
|
data/spec/dummy/log/test.log
CHANGED
@@ -11001,3 +11001,571 @@
|
|
11001
11001
|
[1m[35m (0.0ms)[0m rollback transaction
|
11002
11002
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11003
11003
|
[1m[35m (0.0ms)[0m rollback transaction
|
11004
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
11005
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11006
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
11007
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11008
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
11009
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11010
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
11011
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11012
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
11013
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11014
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
11015
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11016
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11017
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-1' LIMIT 1
|
11018
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-10-13 19:43:33.198158"], ["name", "Foo"], ["permalink", "foo-1"], ["price", 100], ["updated_at", "2014-10-13 19:43:33.198158"]]
|
11019
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11020
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
11021
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11022
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11023
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-2' LIMIT 1
|
11024
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-10-13 19:43:33.277870"], ["name", "Foo"], ["permalink", "foo-2"], ["price", 100], ["updated_at", "2014-10-13 19:43:33.277870"]]
|
11025
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11026
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11027
|
+
[1m[35mPayola::Affiliate Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_affiliates" WHERE "payola_affiliates"."code" = 'MyString' LIMIT 1
|
11028
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "payola_affiliates" ("code", "created_at", "email", "percent", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["code", "MyString"], ["created_at", "2014-10-13 19:43:33.289417"], ["email", "foo@example.com"], ["percent", 100], ["updated_at", "2014-10-13 19:43:33.289417"]]
|
11029
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11030
|
+
[1m[36mPayola::Affiliate Load (0.1ms)[0m [1mSELECT "payola_affiliates".* FROM "payola_affiliates" WHERE "payola_affiliates"."id" = ? LIMIT 1[0m [["id", 1]]
|
11031
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
11032
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11033
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11034
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-3' LIMIT 1[0m
|
11035
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-10-13 19:43:33.299419"], ["name", "Foo"], ["permalink", "foo-3"], ["price", 100], ["updated_at", "2014-10-13 19:43:33.299419"]]
|
11036
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11037
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11038
|
+
[1m[36mPayola::Coupon Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_coupons" WHERE "payola_coupons"."code" = 'MyString' LIMIT 1[0m
|
11039
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "payola_coupons" ("code", "created_at", "percent_off", "updated_at") VALUES (?, ?, ?, ?) [["code", "MyString"], ["created_at", "2014-10-13 19:43:33.307213"], ["percent_off", 1], ["updated_at", "2014-10-13 19:43:33.307213"]]
|
11040
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11041
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
11042
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11043
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11044
|
+
[1m[36mProduct Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-4' LIMIT 1[0m
|
11045
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-10-13 19:43:33.314159"], ["name", "Foo"], ["permalink", "foo-4"], ["price", 100], ["updated_at", "2014-10-13 19:43:33.314159"]]
|
11046
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11047
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11048
|
+
[1m[36mPayola::Coupon Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_coupons" WHERE "payola_coupons"."code" = 'MyString' LIMIT 1[0m
|
11049
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "payola_coupons" ("code", "created_at", "percent_off", "updated_at") VALUES (?, ?, ?, ?) [["code", "MyString"], ["created_at", "2014-10-13 19:43:33.316471"], ["percent_off", 1], ["updated_at", "2014-10-13 19:43:33.316471"]]
|
11050
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11051
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
11052
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11053
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11054
|
+
[1m[36mProduct Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-5' LIMIT 1[0m
|
11055
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-10-13 19:43:33.323671"], ["name", "Foo"], ["permalink", "foo-5"], ["price", 100], ["updated_at", "2014-10-13 19:43:33.323671"]]
|
11056
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11057
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11058
|
+
[1m[36mPayola::Sale Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
11059
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
11060
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'oi5c4i' LIMIT 1[0m
|
11061
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "payola_sales" ("created_at", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-10-13 19:43:33.328054"], ["email", "test@example.com"], ["guid", "oi5c4i"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-10-13 19:43:33.328054"]]
|
11062
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11063
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11064
|
+
[1m[36mPayola::Sale Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'oi5c4i' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
11065
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11066
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11067
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'oi5c4i' AND "payola_sales"."id" != 1) LIMIT 1
|
11068
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "payola_sales" SET "card_expiration" = ?, "card_last4" = ?, "card_type" = ?, "fee_amount" = ?, "stripe_customer_id" = ?, "stripe_id" = ?, "updated_at" = ? WHERE "payola_sales"."id" = 1[0m [["card_expiration", "2013-12-01"], ["card_last4", "4242"], ["card_type", "Visa"], ["fee_amount", 0], ["stripe_customer_id", "test_cus_1"], ["stripe_id", "test_ch_3"], ["updated_at", "2014-10-13 19:43:33.338431"]]
|
11069
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11070
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11071
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "payola_sales" SET "state" = 'finished' WHERE "payola_sales"."id" = 1
|
11072
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11073
|
+
[1m[35mPayola::Sale Load (0.1ms)[0m SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1 [["id", 1]]
|
11074
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
11075
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11076
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11077
|
+
[1m[35mProduct Exists (0.2ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-6' LIMIT 1
|
11078
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-10-13 19:43:33.372555"], ["name", "Foo"], ["permalink", "foo-6"], ["price", 100], ["updated_at", "2014-10-13 19:43:33.372555"]]
|
11079
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11080
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11081
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
11082
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
11083
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'fcol0h' LIMIT 1
|
11084
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "payola_sales" ("created_at", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-10-13 19:43:33.375697"], ["email", "test@example.com"], ["guid", "fcol0h"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-10-13 19:43:33.375697"]]
|
11085
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11086
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11087
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'fcol0h' AND "payola_sales"."id" != 1) LIMIT 1
|
11088
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11089
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11090
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'fcol0h' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
11091
|
+
[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-10-13 19:43:33.380588"]]
|
11092
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11093
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11094
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "state" = 'finished' WHERE "payola_sales"."id" = 1[0m
|
11095
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11096
|
+
[1m[36mPayola::Sale Load (0.0ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1[0m [["id", 1]]
|
11097
|
+
[1m[35mPayola::Sale Load (0.0ms)[0m SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1 [["id", 1]]
|
11098
|
+
[1m[36mPayola::Sale Load (0.0ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1[0m [["id", 1]]
|
11099
|
+
[1m[35mPayola::Sale Load (0.0ms)[0m SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1 [["id", 1]]
|
11100
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
11101
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11102
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11103
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-7' LIMIT 1
|
11104
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-10-13 19:43:33.387083"], ["name", "Foo"], ["permalink", "foo-7"], ["price", 100], ["updated_at", "2014-10-13 19:43:33.387083"]]
|
11105
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11106
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11107
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
11108
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
11109
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = '34vmkt' LIMIT 1
|
11110
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "payola_sales" ("created_at", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-10-13 19:43:33.436507"], ["email", "test@example.com"], ["guid", "34vmkt"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-10-13 19:43:33.436507"]]
|
11111
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11112
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11113
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = '34vmkt' AND "payola_sales"."id" != 1) LIMIT 1
|
11114
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11115
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11116
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = '34vmkt' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
11117
|
+
[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-10-13 19:43:33.440923"]]
|
11118
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11119
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11120
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "state" = 'finished' WHERE "payola_sales"."id" = 1[0m
|
11121
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11122
|
+
[1m[36mPayola::Sale Load (0.0ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1[0m [["id", 1]]
|
11123
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
11124
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11125
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11126
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-8' LIMIT 1[0m
|
11127
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-10-13 19:43:33.446592"], ["name", "Foo"], ["permalink", "foo-8"], ["price", 100], ["updated_at", "2014-10-13 19:43:33.446592"]]
|
11128
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11129
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11130
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
11131
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
11132
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'i48p0' LIMIT 1[0m
|
11133
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "payola_sales" ("created_at", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-10-13 19:43:33.449220"], ["email", "test@example.com"], ["guid", "i48p0"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-10-13 19:43:33.449220"]]
|
11134
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11135
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11136
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'i48p0' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
11137
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11138
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11139
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'i48p0' AND "payola_sales"."id" != 1) LIMIT 1
|
11140
|
+
[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-10-13 19:43:33.452732"]]
|
11141
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11142
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11143
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "payola_sales" SET "state" = 'errored' WHERE "payola_sales"."id" = 1
|
11144
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11145
|
+
[1m[35mPayola::Sale Load (0.0ms)[0m SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1 [["id", 1]]
|
11146
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
11147
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11148
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
11149
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11150
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
11151
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11152
|
+
[1m[36mProduct Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'f' LIMIT 1[0m
|
11153
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
11154
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11155
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-10' LIMIT 1
|
11156
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
11157
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11158
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-11' LIMIT 1[0m
|
11159
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11160
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11161
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11162
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11163
|
+
[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
|
11164
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
11165
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11166
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11167
|
+
[1m[35mPayola::StripeWebhook Exists (0.2ms)[0m SELECT 1 AS one FROM "payola_stripe_webhooks" WHERE "payola_stripe_webhooks"."stripe_id" = 'test_id' LIMIT 1
|
11168
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "payola_stripe_webhooks" ("created_at", "stripe_id", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-10-13 19:43:33.483963"], ["stripe_id", "test_id"], ["updated_at", "2014-10-13 19:43:33.483963"]]
|
11169
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11170
|
+
[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
|
11171
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
11172
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11173
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
11174
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11175
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
11176
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11177
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
11178
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11179
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
11180
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11181
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
11182
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11183
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11184
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11185
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11186
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11187
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11188
|
+
[1m[36mProduct Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-12' LIMIT 1[0m
|
11189
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-10-13 19:43:33.500531"], ["name", "Foo"], ["permalink", "foo-12"], ["price", 100], ["updated_at", "2014-10-13 19:43:33.500531"]]
|
11190
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11191
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11192
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
11193
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
11194
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'kls88n' LIMIT 1[0m
|
11195
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "payola_sales" ("created_at", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-10-13 19:43:33.503689"], ["email", "test@example.com"], ["guid", "kls88n"], ["product_id", 1], ["product_type", "Product"], ["state", "finished"], ["stripe_token", "tok_test"], ["updated_at", "2014-10-13 19:43:33.503689"]]
|
11196
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11197
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11198
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "state" = 'refunded' WHERE "payola_sales"."id" = 1[0m
|
11199
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11200
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
11201
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11202
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11203
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-13' LIMIT 1
|
11204
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-10-13 19:43:33.509435"], ["name", "Foo"], ["permalink", "foo-13"], ["price", 100], ["updated_at", "2014-10-13 19:43:33.509435"]]
|
11205
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11206
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11207
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
11208
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
11209
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'qcp360' LIMIT 1
|
11210
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "payola_sales" ("created_at", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-10-13 19:43:33.511986"], ["email", "test@example.com"], ["guid", "qcp360"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-10-13 19:43:33.511986"]]
|
11211
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11212
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11213
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "payola_sales" SET "state" = 'errored' WHERE "payola_sales"."id" = 1
|
11214
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11215
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
11216
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11217
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11218
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-14' LIMIT 1[0m
|
11219
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-10-13 19:43:33.517847"], ["name", "Foo"], ["permalink", "foo-14"], ["price", 100], ["updated_at", "2014-10-13 19:43:33.517847"]]
|
11220
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11221
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
11222
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
11223
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11224
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
11225
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
11226
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11227
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11228
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-15' LIMIT 1[0m
|
11229
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-10-13 19:43:33.526715"], ["name", "Foo"], ["permalink", "foo-15"], ["price", 100], ["updated_at", "2014-10-13 19:43:33.526715"]]
|
11230
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11231
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
11232
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
11233
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11234
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11235
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-16' LIMIT 1
|
11236
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-10-13 19:43:33.531483"], ["name", "Foo"], ["permalink", "foo-16"], ["price", 100], ["updated_at", "2014-10-13 19:43:33.531483"]]
|
11237
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11238
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
11239
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
11240
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11241
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11242
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-17' LIMIT 1[0m
|
11243
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-10-13 19:43:33.535878"], ["name", "Foo"], ["permalink", "foo-17"], ["price", 100], ["updated_at", "2014-10-13 19:43:33.535878"]]
|
11244
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11245
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11246
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
11247
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
11248
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'g1lbur' LIMIT 1[0m
|
11249
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "payola_sales" ("created_at", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-10-13 19:43:33.538712"], ["email", "test@example.com"], ["guid", "g1lbur"], ["product_id", 1], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-10-13 19:43:33.538712"]]
|
11250
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11251
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11252
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "state" = 'processing' WHERE "payola_sales"."id" = 1[0m
|
11253
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11254
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
11255
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11256
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11257
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-18' LIMIT 1
|
11258
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-10-13 19:43:33.543921"], ["name", "Foo"], ["permalink", "foo-18"], ["price", 100], ["updated_at", "2014-10-13 19:43:33.543921"]]
|
11259
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11260
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11261
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
11262
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
11263
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'nk4qn6' LIMIT 1
|
11264
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "payola_sales" ("created_at", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-10-13 19:43:33.546437"], ["email", "test@example.com"], ["guid", "nk4qn6"], ["product_id", 1], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-10-13 19:43:33.546437"]]
|
11265
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11266
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'nk4qn6' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
11267
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11268
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-19' LIMIT 1[0m
|
11269
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-10-13 19:43:33.549235"], ["name", "Foo"], ["permalink", "foo-19"], ["price", 100], ["updated_at", "2014-10-13 19:43:33.549235"]]
|
11270
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11271
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'nk4qn6' LIMIT 1
|
11272
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
11273
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11274
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11275
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-20' LIMIT 1
|
11276
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-10-13 19:43:33.555013"], ["name", "Foo"], ["permalink", "foo-20"], ["price", 100], ["updated_at", "2014-10-13 19:43:33.555013"]]
|
11277
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11278
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11279
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
11280
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
11281
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'llgh05' LIMIT 1
|
11282
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "payola_sales" ("created_at", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-10-13 19:43:33.557767"], ["email", "test@example.com"], ["guid", "llgh05"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-10-13 19:43:33.557767"]]
|
11283
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11284
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11285
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "payola_sales" SET "state" = 'finished' WHERE "payola_sales"."id" = 1
|
11286
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11287
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
11288
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
11289
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11290
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
11291
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11292
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
11293
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11294
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
11295
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11296
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11297
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-1' LIMIT 1
|
11298
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-10-13 20:56:21.478825"], ["name", "Foo"], ["permalink", "foo-1"], ["price", 100], ["updated_at", "2014-10-13 20:56:21.478825"]]
|
11299
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11300
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
11301
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11302
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11303
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-2' LIMIT 1
|
11304
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-10-13 20:56:21.552999"], ["name", "Foo"], ["permalink", "foo-2"], ["price", 100], ["updated_at", "2014-10-13 20:56:21.552999"]]
|
11305
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11306
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11307
|
+
[1m[35mPayola::Affiliate Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_affiliates" WHERE "payola_affiliates"."code" = 'MyString' LIMIT 1
|
11308
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "payola_affiliates" ("code", "created_at", "email", "percent", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["code", "MyString"], ["created_at", "2014-10-13 20:56:21.562678"], ["email", "foo@example.com"], ["percent", 100], ["updated_at", "2014-10-13 20:56:21.562678"]]
|
11309
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11310
|
+
[1m[36mPayola::Affiliate Load (0.1ms)[0m [1mSELECT "payola_affiliates".* FROM "payola_affiliates" WHERE "payola_affiliates"."id" = ? LIMIT 1[0m [["id", 1]]
|
11311
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
11312
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11313
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11314
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-3' LIMIT 1[0m
|
11315
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-10-13 20:56:21.573435"], ["name", "Foo"], ["permalink", "foo-3"], ["price", 100], ["updated_at", "2014-10-13 20:56:21.573435"]]
|
11316
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11317
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11318
|
+
[1m[36mPayola::Coupon Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_coupons" WHERE "payola_coupons"."code" = 'MyString' LIMIT 1[0m
|
11319
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "payola_coupons" ("code", "created_at", "percent_off", "updated_at") VALUES (?, ?, ?, ?) [["code", "MyString"], ["created_at", "2014-10-13 20:56:21.581468"], ["percent_off", 1], ["updated_at", "2014-10-13 20:56:21.581468"]]
|
11320
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11321
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
11322
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11323
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11324
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-4' LIMIT 1[0m
|
11325
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-10-13 20:56:21.587133"], ["name", "Foo"], ["permalink", "foo-4"], ["price", 100], ["updated_at", "2014-10-13 20:56:21.587133"]]
|
11326
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11327
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11328
|
+
[1m[36mPayola::Coupon Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_coupons" WHERE "payola_coupons"."code" = 'MyString' LIMIT 1[0m
|
11329
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "payola_coupons" ("code", "created_at", "percent_off", "updated_at") VALUES (?, ?, ?, ?) [["code", "MyString"], ["created_at", "2014-10-13 20:56:21.588815"], ["percent_off", 1], ["updated_at", "2014-10-13 20:56:21.588815"]]
|
11330
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11331
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
11332
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11333
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11334
|
+
[1m[36mProduct Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-5' LIMIT 1[0m
|
11335
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-10-13 20:56:21.593307"], ["name", "Foo"], ["permalink", "foo-5"], ["price", 100], ["updated_at", "2014-10-13 20:56:21.593307"]]
|
11336
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11337
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
11338
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
11339
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11340
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11341
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-6' LIMIT 1
|
11342
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-10-13 20:56:21.607177"], ["name", "Foo"], ["permalink", "foo-6"], ["price", 100], ["updated_at", "2014-10-13 20:56:21.607177"]]
|
11343
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11344
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
11345
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
11346
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11347
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11348
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-7' LIMIT 1[0m
|
11349
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-10-13 20:56:21.611991"], ["name", "Foo"], ["permalink", "foo-7"], ["price", 100], ["updated_at", "2014-10-13 20:56:21.611991"]]
|
11350
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11351
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
11352
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
11353
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11354
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
11355
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11356
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11357
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11358
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-8' LIMIT 1[0m
|
11359
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-10-13 20:56:21.619309"], ["name", "Foo"], ["permalink", "foo-8"], ["price", 100], ["updated_at", "2014-10-13 20:56:21.619309"]]
|
11360
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11361
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11362
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
11363
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
11364
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = '6akp8g' LIMIT 1[0m
|
11365
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "payola_sales" ("created_at", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-10-13 20:56:21.623607"], ["email", "test@example.com"], ["guid", "6akp8g"], ["product_id", 1], ["product_type", "Product"], ["state", "finished"], ["stripe_token", "tok_test"], ["updated_at", "2014-10-13 20:56:21.623607"]]
|
11366
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11367
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11368
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "state" = 'refunded' WHERE "payola_sales"."id" = 1[0m
|
11369
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11370
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
11371
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11372
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11373
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-9' LIMIT 1
|
11374
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-10-13 20:56:21.676491"], ["name", "Foo"], ["permalink", "foo-9"], ["price", 100], ["updated_at", "2014-10-13 20:56:21.676491"]]
|
11375
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11376
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11377
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
11378
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
11379
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = '81u2pl' LIMIT 1
|
11380
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "payola_sales" ("created_at", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-10-13 20:56:21.679206"], ["email", "test@example.com"], ["guid", "81u2pl"], ["product_id", 1], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-10-13 20:56:21.679206"]]
|
11381
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11382
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11383
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "payola_sales" SET "state" = 'processing' WHERE "payola_sales"."id" = 1
|
11384
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11385
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
11386
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11387
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11388
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-10' LIMIT 1[0m
|
11389
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-10-13 20:56:21.686204"], ["name", "Foo"], ["permalink", "foo-10"], ["price", 100], ["updated_at", "2014-10-13 20:56:21.686204"]]
|
11390
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11391
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11392
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
11393
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
11394
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = '6n7bpq' LIMIT 1[0m
|
11395
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "payola_sales" ("created_at", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-10-13 20:56:21.689112"], ["email", "test@example.com"], ["guid", "6n7bpq"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-10-13 20:56:21.689112"]]
|
11396
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11397
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11398
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "state" = 'finished' WHERE "payola_sales"."id" = 1[0m
|
11399
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11400
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
11401
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11402
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11403
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-11' LIMIT 1
|
11404
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-10-13 20:56:21.695569"], ["name", "Foo"], ["permalink", "foo-11"], ["price", 100], ["updated_at", "2014-10-13 20:56:21.695569"]]
|
11405
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11406
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11407
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
11408
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
11409
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = '5vi61k' LIMIT 1
|
11410
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "payola_sales" ("created_at", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-10-13 20:56:21.698463"], ["email", "test@example.com"], ["guid", "5vi61k"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-10-13 20:56:21.698463"]]
|
11411
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11412
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11413
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "payola_sales" SET "state" = 'errored' WHERE "payola_sales"."id" = 1
|
11414
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11415
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
11416
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11417
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11418
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-12' LIMIT 1[0m
|
11419
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-10-13 20:56:21.704628"], ["name", "Foo"], ["permalink", "foo-12"], ["price", 100], ["updated_at", "2014-10-13 20:56:21.704628"]]
|
11420
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11421
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11422
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
11423
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
11424
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = '274655' LIMIT 1[0m
|
11425
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "payola_sales" ("created_at", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-10-13 20:56:21.707242"], ["email", "test@example.com"], ["guid", "274655"], ["product_id", 1], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-10-13 20:56:21.707242"]]
|
11426
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11427
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = '274655' AND "payola_sales"."id" != 1) LIMIT 1
|
11428
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11429
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-13' LIMIT 1
|
11430
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-10-13 20:56:21.711124"], ["name", "Foo"], ["permalink", "foo-13"], ["price", 100], ["updated_at", "2014-10-13 20:56:21.711124"]]
|
11431
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11432
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = '274655' LIMIT 1[0m
|
11433
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
11434
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11435
|
+
[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
|
11436
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
11437
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11438
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11439
|
+
[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
|
11440
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "payola_stripe_webhooks" ("created_at", "stripe_id", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-10-13 20:56:21.720564"], ["stripe_id", "test_id"], ["updated_at", "2014-10-13 20:56:21.720564"]]
|
11441
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11442
|
+
[1m[36mPayola::StripeWebhook Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_stripe_webhooks" WHERE "payola_stripe_webhooks"."stripe_id" = 'test_id' LIMIT 1[0m
|
11443
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
11444
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11445
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11446
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11447
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
11448
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11449
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11450
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11451
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'f' LIMIT 1
|
11452
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
11453
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11454
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-15' LIMIT 1[0m
|
11455
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11456
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11457
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-16' LIMIT 1
|
11458
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
11459
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11460
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
11461
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11462
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
11463
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11464
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
11465
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11466
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11467
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-17' LIMIT 1
|
11468
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-10-13 20:56:21.738624"], ["name", "Foo"], ["permalink", "foo-17"], ["price", 100], ["updated_at", "2014-10-13 20:56:21.738624"]]
|
11469
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11470
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11471
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
11472
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
11473
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'btai2v' LIMIT 1
|
11474
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "payola_sales" ("created_at", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-10-13 20:56:21.741163"], ["email", "test@example.com"], ["guid", "btai2v"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-10-13 20:56:21.741163"]]
|
11475
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11476
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11477
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'btai2v' AND "payola_sales"."id" != 1) LIMIT 1
|
11478
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11479
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11480
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'btai2v' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
11481
|
+
[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-10-13 20:56:21.745385"]]
|
11482
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11483
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11484
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "state" = 'finished' WHERE "payola_sales"."id" = 1[0m
|
11485
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11486
|
+
[1m[36mPayola::Sale Load (0.1ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1[0m [["id", 1]]
|
11487
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
11488
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11489
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11490
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-18' LIMIT 1[0m
|
11491
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-10-13 20:56:21.752405"], ["name", "Foo"], ["permalink", "foo-18"], ["price", 100], ["updated_at", "2014-10-13 20:56:21.752405"]]
|
11492
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11493
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11494
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
11495
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
11496
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'dg9sgd' LIMIT 1[0m
|
11497
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "payola_sales" ("created_at", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-10-13 20:56:21.755450"], ["email", "test@example.com"], ["guid", "dg9sgd"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-10-13 20:56:21.755450"]]
|
11498
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11499
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11500
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'dg9sgd' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
11501
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11502
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11503
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'dg9sgd' AND "payola_sales"."id" != 1) LIMIT 1
|
11504
|
+
[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-10-13 20:56:21.759785"]]
|
11505
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11506
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11507
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "payola_sales" SET "state" = 'finished' WHERE "payola_sales"."id" = 1
|
11508
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11509
|
+
[1m[35mPayola::Sale Load (0.1ms)[0m SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1 [["id", 1]]
|
11510
|
+
[1m[36mPayola::Sale Load (0.1ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1[0m [["id", 1]]
|
11511
|
+
[1m[35mPayola::Sale Load (0.1ms)[0m SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1 [["id", 1]]
|
11512
|
+
[1m[36mPayola::Sale Load (0.1ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1[0m [["id", 1]]
|
11513
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
11514
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11515
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11516
|
+
[1m[36mProduct Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-19' LIMIT 1[0m
|
11517
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-10-13 20:56:21.768268"], ["name", "Foo"], ["permalink", "foo-19"], ["price", 100], ["updated_at", "2014-10-13 20:56:21.768268"]]
|
11518
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11519
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11520
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
11521
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
11522
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'sb7jjm' LIMIT 1[0m
|
11523
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "payola_sales" ("created_at", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-10-13 20:56:21.771281"], ["email", "test@example.com"], ["guid", "sb7jjm"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-10-13 20:56:21.771281"]]
|
11524
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11525
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11526
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'sb7jjm' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
11527
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11528
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
11529
|
+
[1m[35mPayola::Sale Exists (0.2ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'sb7jjm' AND "payola_sales"."id" != 1) LIMIT 1
|
11530
|
+
[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-10-13 20:56:21.778091"]]
|
11531
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11532
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11533
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "payola_sales" SET "state" = 'finished' WHERE "payola_sales"."id" = 1
|
11534
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11535
|
+
[1m[35mPayola::Sale Load (0.1ms)[0m SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1 [["id", 1]]
|
11536
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
11537
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11538
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11539
|
+
[1m[35mProduct Exists (0.2ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-20' LIMIT 1
|
11540
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-10-13 20:56:21.785840"], ["name", "Foo"], ["permalink", "foo-20"], ["price", 100], ["updated_at", "2014-10-13 20:56:21.785840"]]
|
11541
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11542
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11543
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
11544
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
11545
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = '9qs19d' LIMIT 1
|
11546
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "payola_sales" ("created_at", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-10-13 20:56:21.790654"], ["email", "test@example.com"], ["guid", "9qs19d"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-10-13 20:56:21.790654"]]
|
11547
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11548
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11549
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = '9qs19d' AND "payola_sales"."id" != 1) LIMIT 1
|
11550
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11551
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11552
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = '9qs19d' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
11553
|
+
[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-10-13 20:56:21.796742"]]
|
11554
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11555
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11556
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "state" = 'errored' WHERE "payola_sales"."id" = 1[0m
|
11557
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11558
|
+
[1m[36mPayola::Sale Load (0.1ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1[0m [["id", 1]]
|
11559
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
11560
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11561
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
11562
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11563
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
11564
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11565
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
11566
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11567
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
11568
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11569
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
11570
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11571
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: payola-payments
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pete Keen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - ~>
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 1.
|
47
|
+
version: 1.16.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 1.
|
54
|
+
version: 1.16.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: aasm
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|