payola-payments 1.1.2 → 1.1.3
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 +5 -4
- data/app/services/payola/charge_card.rb +4 -2
- data/app/views/payola/receipt_mailer/receipt.html.erb +2 -0
- data/app/views/payola/receipt_mailer/receipt.text.erb +3 -1
- data/app/views/payola/transactions/_checkout.html.erb +5 -1
- data/lib/payola.rb +2 -0
- data/lib/payola/version.rb +1 -1
- data/spec/dummy/log/test.log +1244 -0
- data/spec/payola_spec.rb +7 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YjVkNzEyNTE1ZDMzNDgwMmJkOWNiYWQ4MTgyMzNiNmFjOTcyMGFkMA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OTAzZjY5MjRkNjEyNzUwNjZiMTQyOWMxNDI5ODE4ZDI1YWFlNzk3Nw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YjQzOTg1YzNmZTM5MTRkNjIyYTVlNGU2MWYzMjc4NzJjNDA0MWMzNTcxZTlm
|
10
|
+
Nzg4OTgxNTBhYTAzMTZlMjRiZmZlMjIyMTI3Y2E0ZDQzMjczOWZjMDNiODcw
|
11
|
+
YzIxYzNiODMyNTQzMGU5YmMzMjM3MjNlNjMxOTMwMTcxY2UwODc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OTg2YzcxMmJmNGJhNmU1MmVmMGZmMmE5MWQ4MGMyZWMzM2I3MDdjM2ZmODY2
|
14
|
+
ZjI0NTc2NTk4ZWU3ZWI4NjM4YzI5MGM3NjliYmY5ODRmNThlNjI4MWMwMzc4
|
15
|
+
NDQyOWJlODZjNDBmMmE4ZjU0ODNkZWRjMjMxN2NiNGVhMmFiNzM=
|
@@ -13,19 +13,20 @@ var PayolaCheckout = {
|
|
13
13
|
var handler = StripeCheckout.configure({
|
14
14
|
key: options.publishable_key,
|
15
15
|
image: options.product_image_path,
|
16
|
-
token: function(token) { PayolaCheckout.tokenHandler(token, options) }
|
17
|
-
});
|
18
|
-
|
19
|
-
handler.open({
|
16
|
+
token: function(token) { PayolaCheckout.tokenHandler(token, options) },
|
20
17
|
name: options.name,
|
21
18
|
description: options.description,
|
22
19
|
amount: options.price,
|
23
20
|
panelLabel: options.panel_label,
|
24
21
|
allowRememberMe: options.allow_remember_me,
|
25
22
|
zipCode: options.verify_zip_code,
|
23
|
+
billingAddress: options.billing_address,
|
24
|
+
shippingAddress: options.shipping_address,
|
26
25
|
currency: options.currency,
|
27
26
|
email: options.email || undefined
|
28
27
|
});
|
28
|
+
|
29
|
+
handler.open();
|
29
30
|
},
|
30
31
|
|
31
32
|
tokenHandler: function(token, options) {
|
@@ -12,12 +12,14 @@ module Payola
|
|
12
12
|
email: sale.email
|
13
13
|
}, secret_key)
|
14
14
|
|
15
|
-
|
15
|
+
charge_attributes = {
|
16
16
|
amount: sale.amount,
|
17
17
|
currency: sale.currency,
|
18
18
|
customer: customer.id,
|
19
19
|
description: sale.guid,
|
20
|
-
}
|
20
|
+
}.merge(Payola.additional_charge_attributes.call(sale))
|
21
|
+
|
22
|
+
charge = Stripe::Charge.create(charge_attributes, secret_key)
|
21
23
|
|
22
24
|
if charge.respond_to?(:fee)
|
23
25
|
fee = charge.fee
|
@@ -1,4 +1,6 @@
|
|
1
1
|
<p>Thank you for buying <%= @product.name %></p>
|
2
2
|
<p>Your transaction ID is: <b><%= @sale.guid %></p>
|
3
3
|
<p><%= link_to "Click here to pick up your product", payola.confirm_url(guid: @sale.guid) %></p>
|
4
|
+
<% if Payola.pdf_receipt %>
|
4
5
|
<p>Attached you'll find a PDF receipt for your records.</p>
|
6
|
+
<% end %>
|
@@ -2,6 +2,8 @@ Thanks for buying <%= @product.name %>.
|
|
2
2
|
|
3
3
|
Your transaction ID is: <%= @sale.guid %>
|
4
4
|
|
5
|
-
Click here to
|
5
|
+
Click here to pick up your product: <%= payola.confirm_url(guid: @sale.guid) %>
|
6
6
|
|
7
|
+
<% if Payola.pdf_receipt %>
|
7
8
|
Attached you'll find a PDF receipt for your records.
|
9
|
+
<% end %>
|
@@ -11,6 +11,8 @@
|
|
11
11
|
verify_zip_code = local_assigns.fetch :verify_zip_code, false
|
12
12
|
custom_fields = local_assigns.fetch :custom_fields, nil
|
13
13
|
price = local_assigns.fetch :price, sellable.price
|
14
|
+
billing_address = local_assigns.fetch :billing_address, false
|
15
|
+
shipping_address = local_assigns.fetch :shipping_address, false
|
14
16
|
|
15
17
|
sale = Payola::Sale.new(product: sellable)
|
16
18
|
|
@@ -44,7 +46,9 @@
|
|
44
46
|
panel_label: panel_label,
|
45
47
|
allow_remember_me: allow_remember_me,
|
46
48
|
email: email,
|
47
|
-
verify_zip_code: verify_zip_code
|
49
|
+
verify_zip_code: verify_zip_code,
|
50
|
+
billing_address: billing_address,
|
51
|
+
shipping_address: shipping_address
|
48
52
|
}
|
49
53
|
|
50
54
|
raw_data[:signed_custom_fields] = sale.verifier.generate(custom_fields) if custom_fields
|
data/lib/payola.rb
CHANGED
@@ -15,6 +15,7 @@ module Payola
|
|
15
15
|
:sellables,
|
16
16
|
:charge_verifier,
|
17
17
|
:default_currency,
|
18
|
+
:additional_charge_attributes,
|
18
19
|
:pdf_receipt
|
19
20
|
|
20
21
|
def configure(&block)
|
@@ -69,6 +70,7 @@ module Payola
|
|
69
70
|
self.support_email = 'sales@example.com'
|
70
71
|
self.default_currency = 'usd'
|
71
72
|
self.sellables = {}
|
73
|
+
self.additional_charge_attributes = lambda { |sale| { } }
|
72
74
|
self.pdf_receipt = false
|
73
75
|
end
|
74
76
|
|
data/lib/payola/version.rb
CHANGED
data/spec/dummy/log/test.log
CHANGED
@@ -34085,3 +34085,1247 @@ Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
|
|
34085
34085
|
[1m[35m (0.1ms)[0m rollback transaction
|
34086
34086
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
34087
34087
|
[1m[35m (0.1ms)[0m rollback transaction
|
34088
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "owners" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
34089
|
+
[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)
|
34090
|
+
[1m[36m (1.0ms)[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
|
34091
|
+
[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))
|
34092
|
+
[1m[36m (0.2ms)[0m [1mselect sqlite_version(*)[0m
|
34093
|
+
[1m[35m (1.1ms)[0m CREATE INDEX "index_payola_sales_on_coupon_id" ON "payola_sales" ("coupon_id")
|
34094
|
+
[1m[36m (0.2ms)[0m [1m SELECT sql
|
34095
|
+
FROM sqlite_master
|
34096
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
34097
|
+
UNION ALL
|
34098
|
+
SELECT sql
|
34099
|
+
FROM sqlite_temp_master
|
34100
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
34101
|
+
[0m
|
34102
|
+
[1m[35m (0.8ms)[0m CREATE INDEX "index_payola_sales_on_email" ON "payola_sales" ("email")
|
34103
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
34104
|
+
FROM sqlite_master
|
34105
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
34106
|
+
UNION ALL
|
34107
|
+
SELECT sql
|
34108
|
+
FROM sqlite_temp_master
|
34109
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
34110
|
+
[0m
|
34111
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
34112
|
+
FROM sqlite_master
|
34113
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
34114
|
+
UNION ALL
|
34115
|
+
SELECT sql
|
34116
|
+
FROM sqlite_temp_master
|
34117
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
34118
|
+
|
34119
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_payola_sales_on_guid" ON "payola_sales" ("guid")[0m
|
34120
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
34121
|
+
FROM sqlite_master
|
34122
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
34123
|
+
UNION ALL
|
34124
|
+
SELECT sql
|
34125
|
+
FROM sqlite_temp_master
|
34126
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
34127
|
+
|
34128
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
34129
|
+
FROM sqlite_master
|
34130
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
34131
|
+
UNION ALL
|
34132
|
+
SELECT sql
|
34133
|
+
FROM sqlite_temp_master
|
34134
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
34135
|
+
[0m
|
34136
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
34137
|
+
FROM sqlite_master
|
34138
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
34139
|
+
UNION ALL
|
34140
|
+
SELECT sql
|
34141
|
+
FROM sqlite_temp_master
|
34142
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
34143
|
+
|
34144
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_payola_sales_on_owner_id_and_owner_type" ON "payola_sales" ("owner_id", "owner_type")[0m
|
34145
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
34146
|
+
FROM sqlite_master
|
34147
|
+
WHERE name='index_payola_sales_on_owner_id_and_owner_type' AND type='index'
|
34148
|
+
UNION ALL
|
34149
|
+
SELECT sql
|
34150
|
+
FROM sqlite_temp_master
|
34151
|
+
WHERE name='index_payola_sales_on_owner_id_and_owner_type' AND type='index'
|
34152
|
+
|
34153
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
34154
|
+
FROM sqlite_master
|
34155
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
34156
|
+
UNION ALL
|
34157
|
+
SELECT sql
|
34158
|
+
FROM sqlite_temp_master
|
34159
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
34160
|
+
[0m
|
34161
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
34162
|
+
FROM sqlite_master
|
34163
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
34164
|
+
UNION ALL
|
34165
|
+
SELECT sql
|
34166
|
+
FROM sqlite_temp_master
|
34167
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
34168
|
+
|
34169
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
34170
|
+
FROM sqlite_master
|
34171
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
34172
|
+
UNION ALL
|
34173
|
+
SELECT sql
|
34174
|
+
FROM sqlite_temp_master
|
34175
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
34176
|
+
[0m
|
34177
|
+
[1m[35m (0.8ms)[0m CREATE INDEX "index_payola_sales_on_product" ON "payola_sales" ("product_id", "product_type")
|
34178
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
34179
|
+
FROM sqlite_master
|
34180
|
+
WHERE name='index_payola_sales_on_product' AND type='index'
|
34181
|
+
UNION ALL
|
34182
|
+
SELECT sql
|
34183
|
+
FROM sqlite_temp_master
|
34184
|
+
WHERE name='index_payola_sales_on_product' AND type='index'
|
34185
|
+
[0m
|
34186
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
34187
|
+
FROM sqlite_master
|
34188
|
+
WHERE name='index_payola_sales_on_owner_id_and_owner_type' AND type='index'
|
34189
|
+
UNION ALL
|
34190
|
+
SELECT sql
|
34191
|
+
FROM sqlite_temp_master
|
34192
|
+
WHERE name='index_payola_sales_on_owner_id_and_owner_type' AND type='index'
|
34193
|
+
|
34194
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
34195
|
+
FROM sqlite_master
|
34196
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
34197
|
+
UNION ALL
|
34198
|
+
SELECT sql
|
34199
|
+
FROM sqlite_temp_master
|
34200
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
34201
|
+
[0m
|
34202
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
34203
|
+
FROM sqlite_master
|
34204
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
34205
|
+
UNION ALL
|
34206
|
+
SELECT sql
|
34207
|
+
FROM sqlite_temp_master
|
34208
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
34209
|
+
|
34210
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
34211
|
+
FROM sqlite_master
|
34212
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
34213
|
+
UNION ALL
|
34214
|
+
SELECT sql
|
34215
|
+
FROM sqlite_temp_master
|
34216
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
34217
|
+
[0m
|
34218
|
+
[1m[35m (0.9ms)[0m CREATE INDEX "index_payola_sales_on_stripe_customer_id" ON "payola_sales" ("stripe_customer_id")
|
34219
|
+
[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
|
34220
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "payola_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_type" varchar(255), "plan_id" integer, "start" datetime, "status" varchar(255), "owner_type" varchar(255), "owner_id" integer, "stripe_customer_id" varchar(255), "cancel_at_period_end" boolean, "current_period_start" datetime, "current_period_end" datetime, "ended_at" datetime, "trial_start" datetime, "trial_end" datetime, "canceled_at" datetime, "quantity" integer, "stripe_id" varchar(255), "stripe_token" varchar(255), "card_last4" varchar(255), "card_expiration" date, "card_type" varchar(255), "error" text, "state" varchar(255), "email" varchar(255), "created_at" datetime, "updated_at" datetime, "currency" varchar(255), "amount" integer)
|
34221
|
+
[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
|
34222
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "subscription_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "amount" integer, "interval" varchar(255), "interval_count" integer, "name" varchar(255), "stripe_id" varchar(255), "trial_period_days" integer, "created_at" datetime, "updated_at" datetime)
|
34223
|
+
[1m[36m (1.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
34224
|
+
[1m[35m (1.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
34225
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
34226
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141106034610')
|
34227
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141001230848')[0m
|
34228
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141029140518')
|
34229
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141105010234')[0m
|
34230
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141001170138')
|
34231
|
+
[1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141001203541')[0m
|
34232
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141002013618')
|
34233
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141002013701')[0m
|
34234
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141002203725')
|
34235
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141017233304')[0m
|
34236
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141026101628')
|
34237
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141026144800')[0m
|
34238
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141029135848')
|
34239
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141105043439')[0m
|
34240
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
34241
|
+
[1m[35m (0.1ms)[0m begin transaction
|
34242
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
34243
|
+
[1m[35m (0.1ms)[0m begin transaction
|
34244
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
34245
|
+
[1m[35m (0.0ms)[0m begin transaction
|
34246
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
34247
|
+
[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
|
34248
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "payola_stripe_webhooks" ("created_at", "stripe_id", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 00:20:51.849717"], ["stripe_id", "test_id"], ["updated_at", "2014-11-07 00:20:51.849717"]]
|
34249
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
34250
|
+
[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
|
34251
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
34252
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
34253
|
+
[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
|
34254
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
34255
|
+
[1m[35m (0.0ms)[0m begin transaction
|
34256
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
34257
|
+
[1m[35mSubscriptionPlan Exists (0.1ms)[0m SELECT 1 AS one FROM "subscription_plans" WHERE "subscription_plans"."stripe_id" = 'foo-1' LIMIT 1
|
34258
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "subscription_plans" ("amount", "created_at", "interval", "interval_count", "name", "stripe_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["amount", 100], ["created_at", "2014-11-07 00:20:51.888823"], ["interval", "month"], ["interval_count", 1], ["name", "Foo"], ["stripe_id", "foo-1"], ["updated_at", "2014-11-07 00:20:51.888823"]]
|
34259
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
34260
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
34261
|
+
[1m[35m (0.1ms)[0m begin transaction
|
34262
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
34263
|
+
[1m[35m (0.0ms)[0m begin transaction
|
34264
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
34265
|
+
[1m[35m (0.1ms)[0m begin transaction
|
34266
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
34267
|
+
[1m[35m (0.0ms)[0m begin transaction
|
34268
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
34269
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-1' LIMIT 1
|
34270
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-07 00:20:51.998198"], ["name", "Foo"], ["permalink", "foo-1"], ["price", 100], ["updated_at", "2014-11-07 00:20:51.998198"]]
|
34271
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
34272
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
34273
|
+
[1m[35mPayola::Sale Exists (0.2ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
34274
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
34275
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'c5hvt2' LIMIT 1
|
34276
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-11-07 00:20:52.004262"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "c5hvt2"], ["product_id", 1], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-07 00:20:52.004262"]]
|
34277
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
34278
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
34279
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "payola_sales" SET "state" = 'processing' WHERE "payola_sales"."id" = 1
|
34280
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34281
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
34282
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
34283
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
34284
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-2' LIMIT 1[0m
|
34285
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-07 00:20:52.016104"], ["name", "Foo"], ["permalink", "foo-2"], ["price", 100], ["updated_at", "2014-11-07 00:20:52.016104"]]
|
34286
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34287
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
34288
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
34289
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
34290
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = '9m8k2o' LIMIT 1[0m
|
34291
|
+
[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-07 00:20:52.018794"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "9m8k2o"], ["product_id", 1], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-07 00:20:52.018794"]]
|
34292
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34293
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = '9m8k2o' AND "payola_sales"."id" != 1) LIMIT 1
|
34294
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
34295
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-3' LIMIT 1
|
34296
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-07 00:20:52.023473"], ["name", "Foo"], ["permalink", "foo-3"], ["price", 100], ["updated_at", "2014-11-07 00:20:52.023473"]]
|
34297
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
34298
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = '9m8k2o' LIMIT 1[0m
|
34299
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
34300
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
34301
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
34302
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-4' LIMIT 1[0m
|
34303
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-07 00:20:52.030162"], ["name", "Foo"], ["permalink", "foo-4"], ["price", 100], ["updated_at", "2014-11-07 00:20:52.030162"]]
|
34304
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34305
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
34306
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
34307
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
34308
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = '58v28' LIMIT 1[0m
|
34309
|
+
[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-07 00:20:52.032889"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "58v28"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-07 00:20:52.032889"]]
|
34310
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34311
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
34312
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "state" = 'finished' WHERE "payola_sales"."id" = 1[0m
|
34313
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
34314
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
34315
|
+
[1m[35m (0.0ms)[0m begin transaction
|
34316
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
34317
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-5' LIMIT 1
|
34318
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-07 00:20:52.039205"], ["name", "Foo"], ["permalink", "foo-5"], ["price", 100], ["updated_at", "2014-11-07 00:20:52.039205"]]
|
34319
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
34320
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
34321
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
34322
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
34323
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'jn2s2d' LIMIT 1
|
34324
|
+
[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-07 00:20:52.042157"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "jn2s2d"], ["product_id", 1], ["product_type", "Product"], ["state", "finished"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-07 00:20:52.042157"]]
|
34325
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
34326
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
34327
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "payola_sales" SET "state" = 'refunded' WHERE "payola_sales"."id" = 1
|
34328
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34329
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
34330
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
34331
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
34332
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-6' LIMIT 1[0m
|
34333
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-07 00:20:52.048157"], ["name", "Foo"], ["permalink", "foo-6"], ["price", 100], ["updated_at", "2014-11-07 00:20:52.048157"]]
|
34334
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34335
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
34336
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
34337
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
34338
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = '6m1590' LIMIT 1[0m
|
34339
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-11-07 00:20:52.050686"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "6m1590"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-07 00:20:52.050686"]]
|
34340
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34341
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
34342
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "state" = 'errored' WHERE "payola_sales"."id" = 1[0m
|
34343
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
34344
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
34345
|
+
[1m[35m (0.1ms)[0m begin transaction
|
34346
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
34347
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-7' LIMIT 1
|
34348
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-07 00:20:52.056974"], ["name", "Foo"], ["permalink", "foo-7"], ["price", 100], ["updated_at", "2014-11-07 00:20:52.056974"]]
|
34349
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
34350
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
34351
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
34352
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
34353
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
34354
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-8' LIMIT 1[0m
|
34355
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-07 00:20:52.061066"], ["name", "Foo"], ["permalink", "foo-8"], ["price", 100], ["updated_at", "2014-11-07 00:20:52.061066"]]
|
34356
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34357
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
34358
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
34359
|
+
[1m[35m (0.0ms)[0m begin transaction
|
34360
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
34361
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
34362
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
34363
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
34364
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-9' LIMIT 1[0m
|
34365
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-07 00:20:52.069030"], ["name", "Foo"], ["permalink", "foo-9"], ["price", 100], ["updated_at", "2014-11-07 00:20:52.069030"]]
|
34366
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34367
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
34368
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
34369
|
+
[1m[35m (0.0ms)[0m begin transaction
|
34370
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
34371
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-10' LIMIT 1
|
34372
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-07 00:20:52.073858"], ["name", "Foo"], ["permalink", "foo-10"], ["price", 100], ["updated_at", "2014-11-07 00:20:52.073858"]]
|
34373
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
34374
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
34375
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
34376
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
34377
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'pah5s7' LIMIT 1
|
34378
|
+
[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-07 00:20:52.076943"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "pah5s7"], ["product_id", 1], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-07 00:20:52.076943"]]
|
34379
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
34380
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
34381
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'pah5s7' AND "payola_sales"."id" != 1) LIMIT 1
|
34382
|
+
[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-07 00:20:52.080802"]]
|
34383
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
34384
|
+
[1m[36mPayola::Sale Load (0.2ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1[0m [["id", 1]]
|
34385
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
34386
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
34387
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
34388
|
+
[1m[36mProduct Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-11' LIMIT 1[0m
|
34389
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-07 00:20:52.088476"], ["name", "Foo"], ["permalink", "foo-11"], ["price", 100], ["updated_at", "2014-11-07 00:20:52.088476"]]
|
34390
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34391
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
34392
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
34393
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
34394
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'e1n3l3' LIMIT 1[0m
|
34395
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-11-07 00:20:52.092298"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "e1n3l3"], ["product_id", 1], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-07 00:20:52.092298"]]
|
34396
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34397
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
34398
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "owners" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-11-07 00:20:52.096433"], ["updated_at", "2014-11-07 00:20:52.096433"]]
|
34399
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
34400
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
34401
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'e1n3l3' AND "payola_sales"."id" != 1) LIMIT 1
|
34402
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "owner_id" = ?, "owner_type" = ?, "updated_at" = ? WHERE "payola_sales"."id" = 1[0m [["owner_id", 1], ["owner_type", "Owner"], ["updated_at", "2014-11-07 00:20:52.100819"]]
|
34403
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
34404
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
34405
|
+
[1m[35m (0.1ms)[0m begin transaction
|
34406
|
+
[1m[36mProduct Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-12' LIMIT 1[0m
|
34407
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
34408
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
34409
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-13' LIMIT 1
|
34410
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
34411
|
+
[1m[35m (0.0ms)[0m begin transaction
|
34412
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'f' LIMIT 1[0m
|
34413
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
34414
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
34415
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
34416
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
34417
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
34418
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
34419
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
34420
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-15' LIMIT 1[0m
|
34421
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-07 00:20:52.161494"], ["name", "Foo"], ["permalink", "foo-15"], ["price", 100], ["updated_at", "2014-11-07 00:20:52.161494"]]
|
34422
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34423
|
+
Processing by Payola::TransactionsController#create as HTML
|
34424
|
+
Parameters: {"product_class"=>"product", "permalink"=>"foo-15"}
|
34425
|
+
[1m[35mProduct Load (0.1ms)[0m SELECT "products".* FROM "products" WHERE "products"."permalink" = 'foo-15' LIMIT 1
|
34426
|
+
[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
|
34427
|
+
[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
|
34428
|
+
Completed 200 OK in 10ms (Views: 0.2ms | ActiveRecord: 0.6ms)
|
34429
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
34430
|
+
[1m[35m (0.0ms)[0m begin transaction
|
34431
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
34432
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-16' LIMIT 1
|
34433
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-07 00:20:52.180316"], ["name", "Foo"], ["permalink", "foo-16"], ["price", 100], ["updated_at", "2014-11-07 00:20:52.180316"]]
|
34434
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
34435
|
+
Processing by Payola::TransactionsController#create as HTML
|
34436
|
+
Parameters: {"product_class"=>"product", "permalink"=>"foo-16"}
|
34437
|
+
[1m[36mProduct Load (0.1ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."permalink" = 'foo-16' LIMIT 1[0m
|
34438
|
+
[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
|
34439
|
+
[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
|
34440
|
+
Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
|
34441
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
34442
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
34443
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
34444
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-17' LIMIT 1[0m
|
34445
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-07 00:20:52.188172"], ["name", "Foo"], ["permalink", "foo-17"], ["price", 100], ["updated_at", "2014-11-07 00:20:52.188172"]]
|
34446
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34447
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
34448
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-18' LIMIT 1[0m
|
34449
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-07 00:20:52.190366"], ["name", "Foo"], ["permalink", "foo-18"], ["price", 100], ["updated_at", "2014-11-07 00:20:52.190366"]]
|
34450
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34451
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
34452
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
34453
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
34454
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'gdcb88' LIMIT 1[0m
|
34455
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-11-07 00:20:52.192838"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "gdcb88"], ["product_id", 2], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-07 00:20:52.192838"]]
|
34456
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34457
|
+
Processing by Payola::TransactionsController#status as HTML
|
34458
|
+
Parameters: {"guid"=>"gdcb88"}
|
34459
|
+
[1m[35mPayola::Sale Load (0.1ms)[0m SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."guid" = 'gdcb88' ORDER BY "payola_sales"."id" ASC LIMIT 1
|
34460
|
+
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
34461
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
34462
|
+
[1m[35m (0.1ms)[0m begin transaction
|
34463
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
34464
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-19' LIMIT 1
|
34465
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-07 00:20:52.199701"], ["name", "Foo"], ["permalink", "foo-19"], ["price", 100], ["updated_at", "2014-11-07 00:20:52.199701"]]
|
34466
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
34467
|
+
Processing by Payola::TransactionsController#status as HTML
|
34468
|
+
Parameters: {"guid"=>"doesnotexist"}
|
34469
|
+
[1m[36mPayola::Sale Load (0.2ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."guid" = 'doesnotexist' ORDER BY "payola_sales"."id" ASC LIMIT 1[0m
|
34470
|
+
Completed 404 Not Found in 14ms (Views: 13.2ms | ActiveRecord: 0.2ms)
|
34471
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
34472
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
34473
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
34474
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-20' LIMIT 1[0m
|
34475
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-07 00:20:52.220071"], ["name", "Foo"], ["permalink", "foo-20"], ["price", 100], ["updated_at", "2014-11-07 00:20:52.220071"]]
|
34476
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34477
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
34478
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-21' LIMIT 1[0m
|
34479
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-07 00:20:52.222207"], ["name", "Foo"], ["permalink", "foo-21"], ["price", 100], ["updated_at", "2014-11-07 00:20:52.222207"]]
|
34480
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34481
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
34482
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
34483
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
34484
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'mq18gc' LIMIT 1[0m
|
34485
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-11-07 00:20:52.224735"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "mq18gc"], ["product_id", 2], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-07 00:20:52.224735"]]
|
34486
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34487
|
+
Processing by Payola::TransactionsController#show as HTML
|
34488
|
+
Parameters: {"guid"=>"mq18gc"}
|
34489
|
+
[1m[35mPayola::Sale Load (0.1ms)[0m SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."guid" = 'mq18gc' LIMIT 1
|
34490
|
+
[1m[36mProduct Load (0.1ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1[0m [["id", 2]]
|
34491
|
+
Redirected to http://test.host/
|
34492
|
+
Completed 302 Found in 6ms (ActiveRecord: 0.3ms)
|
34493
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
34494
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
34495
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
34496
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
34497
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
34498
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
34499
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
34500
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
34501
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
34502
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
34503
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
34504
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
34505
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
34506
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
34507
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
34508
|
+
[1m[36mSubscriptionPlan Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "subscription_plans" WHERE "subscription_plans"."stripe_id" = 'foo-2' LIMIT 1[0m
|
34509
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "subscription_plans" ("amount", "created_at", "interval", "interval_count", "name", "stripe_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 100], ["created_at", "2014-11-07 00:20:52.247738"], ["interval", "month"], ["interval_count", 1], ["name", "Foo"], ["stripe_id", "foo-2"], ["updated_at", "2014-11-07 00:20:52.247738"]]
|
34510
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34511
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
34512
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "payola_subscriptions" ("cancel_at_period_end", "canceled_at", "created_at", "current_period_end", "current_period_start", "ended_at", "owner_id", "owner_type", "plan_id", "plan_type", "quantity", "start", "state", "status", "stripe_customer_id", "stripe_token", "trial_end", "trial_start", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["cancel_at_period_end", "f"], ["canceled_at", "2014-11-04 22:34:39.000000"], ["created_at", "2014-11-07 00:20:52.250876"], ["current_period_end", "2014-11-04 22:34:39.000000"], ["current_period_start", "2014-11-04 22:34:39.000000"], ["ended_at", "2014-11-04 22:34:39.000000"], ["owner_id", 1], ["owner_type", "MyString"], ["plan_id", 1], ["plan_type", "SubscriptionPlan"], ["quantity", 1], ["start", "2014-11-04 22:34:39.000000"], ["state", "processing"], ["status", "MyString"], ["stripe_customer_id", "MyString"], ["stripe_token", "test_tok_1"], ["trial_end", "2014-11-04 22:34:39.000000"], ["trial_start", "2014-11-04 22:34:39.000000"], ["updated_at", "2014-11-07 00:20:52.250876"]]
|
34513
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
34514
|
+
[1m[36mPayola::Subscription Load (0.1ms)[0m [1mSELECT "payola_subscriptions".* FROM "payola_subscriptions" WHERE "payola_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
|
34515
|
+
[1m[35mSubscriptionPlan Load (0.1ms)[0m SELECT "subscription_plans".* FROM "subscription_plans" WHERE "subscription_plans"."id" = ? LIMIT 1 [["id", 1]]
|
34516
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
34517
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "payola_subscriptions" SET "card_expiration" = ?, "card_last4" = ?, "card_type" = ?, "stripe_customer_id" = ?, "stripe_id" = ?, "updated_at" = ? WHERE "payola_subscriptions"."id" = 1 [["card_expiration", "2016-04-01"], ["card_last4", "4242"], ["card_type", "Visa"], ["stripe_customer_id", "test_cus_3"], ["stripe_id", "test_su_4"], ["updated_at", "2014-11-07 00:20:52.257617"]]
|
34518
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34519
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
34520
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_subscriptions" SET "state" = 'finished' WHERE "payola_subscriptions"."id" = 1[0m
|
34521
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
34522
|
+
[1m[36mPayola::Subscription Load (0.1ms)[0m [1mSELECT "payola_subscriptions".* FROM "payola_subscriptions" WHERE "payola_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
|
34523
|
+
[1m[35mPayola::Subscription Load (0.1ms)[0m SELECT "payola_subscriptions".* FROM "payola_subscriptions" WHERE "payola_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
|
34524
|
+
[1m[36mPayola::Subscription Load (0.1ms)[0m [1mSELECT "payola_subscriptions".* FROM "payola_subscriptions" WHERE "payola_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
|
34525
|
+
[1m[35mPayola::Subscription Load (0.0ms)[0m SELECT "payola_subscriptions".* FROM "payola_subscriptions" WHERE "payola_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
|
34526
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
34527
|
+
[1m[35m (0.1ms)[0m begin transaction
|
34528
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
34529
|
+
[1m[35mSubscriptionPlan Exists (0.1ms)[0m SELECT 1 AS one FROM "subscription_plans" WHERE "subscription_plans"."stripe_id" = 'foo-3' LIMIT 1
|
34530
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "subscription_plans" ("amount", "created_at", "interval", "interval_count", "name", "stripe_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["amount", 100], ["created_at", "2014-11-07 00:20:52.268912"], ["interval", "month"], ["interval_count", 1], ["name", "Foo"], ["stripe_id", "foo-3"], ["updated_at", "2014-11-07 00:20:52.268912"]]
|
34531
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
34532
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
34533
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "payola_subscriptions" ("cancel_at_period_end", "canceled_at", "created_at", "current_period_end", "current_period_start", "ended_at", "owner_id", "owner_type", "plan_id", "plan_type", "quantity", "start", "state", "status", "stripe_customer_id", "stripe_token", "trial_end", "trial_start", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cancel_at_period_end", "f"], ["canceled_at", "2014-11-04 22:34:39.000000"], ["created_at", "2014-11-07 00:20:52.272237"], ["current_period_end", "2014-11-04 22:34:39.000000"], ["current_period_start", "2014-11-04 22:34:39.000000"], ["ended_at", "2014-11-04 22:34:39.000000"], ["owner_id", 1], ["owner_type", "MyString"], ["plan_id", 1], ["plan_type", "SubscriptionPlan"], ["quantity", 1], ["start", "2014-11-04 22:34:39.000000"], ["state", "processing"], ["status", "MyString"], ["stripe_customer_id", "MyString"], ["stripe_token", "test_tok_1"], ["trial_end", "2014-11-04 22:34:39.000000"], ["trial_start", "2014-11-04 22:34:39.000000"], ["updated_at", "2014-11-07 00:20:52.272237"]]
|
34534
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34535
|
+
[1m[35mPayola::Subscription Load (0.0ms)[0m SELECT "payola_subscriptions".* FROM "payola_subscriptions" WHERE "payola_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
|
34536
|
+
[1m[36mSubscriptionPlan Load (0.0ms)[0m [1mSELECT "subscription_plans".* FROM "subscription_plans" WHERE "subscription_plans"."id" = ? LIMIT 1[0m [["id", 1]]
|
34537
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
34538
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_subscriptions" SET "card_expiration" = ?, "card_last4" = ?, "card_type" = ?, "stripe_customer_id" = ?, "stripe_id" = ?, "updated_at" = ? WHERE "payola_subscriptions"."id" = 1[0m [["card_expiration", "2016-04-01"], ["card_last4", "4242"], ["card_type", "Visa"], ["stripe_customer_id", "test_cus_3"], ["stripe_id", "test_su_4"], ["updated_at", "2014-11-07 00:20:52.276813"]]
|
34539
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
34540
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
34541
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "payola_subscriptions" SET "state" = 'finished' WHERE "payola_subscriptions"."id" = 1
|
34542
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34543
|
+
[1m[35mPayola::Subscription Load (0.1ms)[0m SELECT "payola_subscriptions".* FROM "payola_subscriptions" WHERE "payola_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
|
34544
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
34545
|
+
[1m[35m (0.0ms)[0m begin transaction
|
34546
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
34547
|
+
[1m[35mSubscriptionPlan Exists (0.1ms)[0m SELECT 1 AS one FROM "subscription_plans" WHERE "subscription_plans"."stripe_id" = 'foo-4' LIMIT 1
|
34548
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "subscription_plans" ("amount", "created_at", "interval", "interval_count", "name", "stripe_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["amount", 100], ["created_at", "2014-11-07 00:20:52.282839"], ["interval", "month"], ["interval_count", 1], ["name", "Foo"], ["stripe_id", "foo-4"], ["updated_at", "2014-11-07 00:20:52.282839"]]
|
34549
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
34550
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
34551
|
+
[1m[35m (0.0ms)[0m begin transaction
|
34552
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
34553
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-22' LIMIT 1
|
34554
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-07 00:20:52.286977"], ["name", "Foo"], ["permalink", "foo-22"], ["price", 100], ["updated_at", "2014-11-07 00:20:52.286977"]]
|
34555
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
34556
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
34557
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
34558
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
34559
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = '8kcavj' LIMIT 1
|
34560
|
+
[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-07 00:20:52.289557"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "8kcavj"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-07 00:20:52.289557"]]
|
34561
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
34562
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
34563
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = '8kcavj' AND "payola_sales"."id" != 1) LIMIT 1
|
34564
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34565
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
34566
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = '8kcavj' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
34567
|
+
[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-07 00:20:52.293770"]]
|
34568
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34569
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
34570
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "state" = 'finished' WHERE "payola_sales"."id" = 1[0m
|
34571
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
34572
|
+
[1m[36mPayola::Sale Load (0.0ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1[0m [["id", 1]]
|
34573
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
34574
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
34575
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
34576
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-23' LIMIT 1[0m
|
34577
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-07 00:20:52.299026"], ["name", "Foo"], ["permalink", "foo-23"], ["price", 100], ["updated_at", "2014-11-07 00:20:52.299026"]]
|
34578
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34579
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
34580
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
34581
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
34582
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = '5lvagl' LIMIT 1[0m
|
34583
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-11-07 00:20:52.301628"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "5lvagl"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-07 00:20:52.301628"]]
|
34584
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34585
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
34586
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = '5lvagl' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
34587
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
34588
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
34589
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = '5lvagl' AND "payola_sales"."id" != 1) LIMIT 1
|
34590
|
+
[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-07 00:20:52.305445"]]
|
34591
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
34592
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
34593
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "payola_sales" SET "state" = 'finished' WHERE "payola_sales"."id" = 1
|
34594
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34595
|
+
[1m[35mPayola::Sale Load (0.0ms)[0m SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1 [["id", 1]]
|
34596
|
+
[1m[36mPayola::Sale Load (0.0ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1[0m [["id", 1]]
|
34597
|
+
[1m[35mPayola::Sale Load (0.0ms)[0m SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1 [["id", 1]]
|
34598
|
+
[1m[36mPayola::Sale Load (0.0ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1[0m [["id", 1]]
|
34599
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
34600
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
34601
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
34602
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-24' LIMIT 1[0m
|
34603
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-07 00:20:52.311704"], ["name", "Foo"], ["permalink", "foo-24"], ["price", 100], ["updated_at", "2014-11-07 00:20:52.311704"]]
|
34604
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34605
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
34606
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
34607
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
34608
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'sqb728' LIMIT 1[0m
|
34609
|
+
[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-07 00:20:52.314407"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "sqb728"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-07 00:20:52.314407"]]
|
34610
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34611
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
34612
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'sqb728' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
34613
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
34614
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
34615
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'sqb728' AND "payola_sales"."id" != 1) LIMIT 1
|
34616
|
+
[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-07 00:20:52.318930"]]
|
34617
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
34618
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
34619
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "payola_sales" SET "state" = 'finished' WHERE "payola_sales"."id" = 1
|
34620
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34621
|
+
[1m[35mPayola::Sale Load (0.1ms)[0m SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1 [["id", 1]]
|
34622
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
34623
|
+
[1m[35m (0.1ms)[0m begin transaction
|
34624
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
34625
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-25' LIMIT 1
|
34626
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-07 00:20:52.325486"], ["name", "Foo"], ["permalink", "foo-25"], ["price", 100], ["updated_at", "2014-11-07 00:20:52.325486"]]
|
34627
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
34628
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
34629
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
34630
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
34631
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'aamks3' LIMIT 1
|
34632
|
+
[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-07 00:20:52.329158"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "aamks3"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-07 00:20:52.329158"]]
|
34633
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
34634
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
34635
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'aamks3' AND "payola_sales"."id" != 1) LIMIT 1
|
34636
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34637
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
34638
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'aamks3' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
34639
|
+
[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-07 00:20:52.332861"]]
|
34640
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34641
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
34642
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "state" = 'errored' WHERE "payola_sales"."id" = 1[0m
|
34643
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
34644
|
+
[1m[36mPayola::Sale Load (0.0ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1[0m [["id", 1]]
|
34645
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
34646
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
34647
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
34648
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
34649
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
34650
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
34651
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
34652
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
34653
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
34654
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
34655
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
34656
|
+
[1m[36mSubscriptionPlan Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "subscription_plans" WHERE "subscription_plans"."stripe_id" = 'foo-5' LIMIT 1[0m
|
34657
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "subscription_plans" ("amount", "created_at", "interval", "interval_count", "name", "stripe_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 100], ["created_at", "2014-11-07 00:20:52.345507"], ["interval", "month"], ["interval_count", 1], ["name", "Foo"], ["stripe_id", "foo-5"], ["updated_at", "2014-11-07 00:20:52.345507"]]
|
34658
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34659
|
+
Processing by Payola::SubscriptionsController#create as HTML
|
34660
|
+
Parameters: {"plan_class"=>"subscription_plan", "plan_id"=>"1"}
|
34661
|
+
[1m[35mSubscriptionPlan Load (0.1ms)[0m SELECT "subscription_plans".* FROM "subscription_plans" WHERE "subscription_plans"."id" = 1 LIMIT 1
|
34662
|
+
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
34663
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
34664
|
+
[1m[35m (0.1ms)[0m begin transaction
|
34665
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
34666
|
+
[1m[35mSubscriptionPlan Exists (0.1ms)[0m SELECT 1 AS one FROM "subscription_plans" WHERE "subscription_plans"."stripe_id" = 'foo-6' LIMIT 1
|
34667
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "subscription_plans" ("amount", "created_at", "interval", "interval_count", "name", "stripe_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["amount", 100], ["created_at", "2014-11-07 00:20:52.397908"], ["interval", "month"], ["interval_count", 1], ["name", "Foo"], ["stripe_id", "foo-6"], ["updated_at", "2014-11-07 00:20:52.397908"]]
|
34668
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
34669
|
+
Processing by Payola::SubscriptionsController#create as HTML
|
34670
|
+
Parameters: {"plan_class"=>"subscription_plan", "plan_id"=>"1"}
|
34671
|
+
[1m[36mSubscriptionPlan Load (0.1ms)[0m [1mSELECT "subscription_plans".* FROM "subscription_plans" WHERE "subscription_plans"."id" = 1 LIMIT 1[0m
|
34672
|
+
Completed 400 Bad Request in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
34673
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
34674
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
34675
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
34676
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
34677
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
34678
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
34679
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
34680
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
34681
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
34682
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
34683
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
34684
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
34685
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
34686
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
34687
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
34688
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
34689
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
34690
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
34691
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
34692
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
34693
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
34694
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
34695
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
34696
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
34697
|
+
[1m[35mSubscriptionPlan Exists (0.1ms)[0m SELECT 1 AS one FROM "subscription_plans" WHERE "subscription_plans"."stripe_id" = 'foo-7' LIMIT 1
|
34698
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
34699
|
+
[1m[35m (0.0ms)[0m begin transaction
|
34700
|
+
[1m[36mSubscriptionPlan Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "subscription_plans" WHERE "subscription_plans"."stripe_id" = 'foo-8' LIMIT 1[0m
|
34701
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
34702
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
34703
|
+
[1m[35mSubscriptionPlan Exists (0.1ms)[0m SELECT 1 AS one FROM "subscription_plans" WHERE "subscription_plans"."stripe_id" = 'foo-9' LIMIT 1
|
34704
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
34705
|
+
[1m[35m (0.0ms)[0m begin transaction
|
34706
|
+
[1m[36mSubscriptionPlan Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "subscription_plans" WHERE "subscription_plans"."stripe_id" = 'foo-10' LIMIT 1[0m
|
34707
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
34708
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
34709
|
+
[1m[35mSubscriptionPlan Exists (0.1ms)[0m SELECT 1 AS one FROM "subscription_plans" WHERE "subscription_plans"."stripe_id" IS NULL LIMIT 1
|
34710
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
34711
|
+
[1m[35m (0.0ms)[0m begin transaction
|
34712
|
+
[1m[36mSubscriptionPlan Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "subscription_plans" WHERE "subscription_plans"."stripe_id" = 'foo-11' LIMIT 1[0m
|
34713
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
34714
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
34715
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
34716
|
+
[1m[36mSubscriptionPlan Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "subscription_plans" WHERE "subscription_plans"."stripe_id" = 'foo-12' LIMIT 1[0m
|
34717
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "subscription_plans" ("amount", "created_at", "interval", "interval_count", "name", "stripe_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 100], ["created_at", "2014-11-07 00:20:52.457729"], ["interval", "month"], ["interval_count", 1], ["name", "Foo"], ["stripe_id", "foo-12"], ["updated_at", "2014-11-07 00:20:52.457729"]]
|
34718
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34719
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
34720
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
34721
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
34722
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
34723
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
34724
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
34725
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
34726
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-26' LIMIT 1[0m
|
34727
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-07 00:20:52.464086"], ["name", "Foo"], ["permalink", "foo-26"], ["price", 100], ["updated_at", "2014-11-07 00:20:52.464086"]]
|
34728
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34729
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
34730
|
+
[1m[36mPayola::Affiliate Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_affiliates" WHERE "payola_affiliates"."code" = 'MyString' LIMIT 1[0m
|
34731
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "payola_affiliates" ("code", "created_at", "email", "percent", "updated_at") VALUES (?, ?, ?, ?, ?) [["code", "MyString"], ["created_at", "2014-11-07 00:20:52.472802"], ["email", "foo@example.com"], ["percent", 100], ["updated_at", "2014-11-07 00:20:52.472802"]]
|
34732
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34733
|
+
[1m[35mPayola::Affiliate Load (0.1ms)[0m SELECT "payola_affiliates".* FROM "payola_affiliates" WHERE "payola_affiliates"."id" = ? LIMIT 1 [["id", 1]]
|
34734
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
34735
|
+
[1m[35m (0.1ms)[0m begin transaction
|
34736
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
34737
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-27' LIMIT 1
|
34738
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-07 00:20:52.480570"], ["name", "Foo"], ["permalink", "foo-27"], ["price", 100], ["updated_at", "2014-11-07 00:20:52.480570"]]
|
34739
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
34740
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
34741
|
+
[1m[35m (0.1ms)[0m begin transaction
|
34742
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
34743
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-28' LIMIT 1
|
34744
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-07 00:20:52.486001"], ["name", "Foo"], ["permalink", "foo-28"], ["price", 100], ["updated_at", "2014-11-07 00:20:52.486001"]]
|
34745
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
34746
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
34747
|
+
[1m[35mPayola::Coupon Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_coupons" WHERE "payola_coupons"."code" = 'MyString' LIMIT 1
|
34748
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "payola_coupons" ("code", "created_at", "percent_off", "updated_at") VALUES (?, ?, ?, ?)[0m [["code", "MyString"], ["created_at", "2014-11-07 00:20:52.495132"], ["percent_off", 1], ["updated_at", "2014-11-07 00:20:52.495132"]]
|
34749
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
34750
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
34751
|
+
[1m[35m (0.1ms)[0m begin transaction
|
34752
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
34753
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-29' LIMIT 1
|
34754
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-07 00:20:52.503732"], ["name", "Foo"], ["permalink", "foo-29"], ["price", 100], ["updated_at", "2014-11-07 00:20:52.503732"]]
|
34755
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
34756
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
34757
|
+
[1m[35mPayola::Coupon Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_coupons" WHERE "payola_coupons"."code" = 'MyString' LIMIT 1
|
34758
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "payola_coupons" ("code", "created_at", "percent_off", "updated_at") VALUES (?, ?, ?, ?)[0m [["code", "MyString"], ["created_at", "2014-11-07 00:20:52.506500"], ["percent_off", 1], ["updated_at", "2014-11-07 00:20:52.506500"]]
|
34759
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
34760
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
34761
|
+
[1m[36m (1.5ms)[0m [1mCREATE TABLE "owners" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
34762
|
+
[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)
|
34763
|
+
[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
|
34764
|
+
[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))
|
34765
|
+
[1m[36m (0.2ms)[0m [1mselect sqlite_version(*)[0m
|
34766
|
+
[1m[35m (1.0ms)[0m CREATE INDEX "index_payola_sales_on_coupon_id" ON "payola_sales" ("coupon_id")
|
34767
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
34768
|
+
FROM sqlite_master
|
34769
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
34770
|
+
UNION ALL
|
34771
|
+
SELECT sql
|
34772
|
+
FROM sqlite_temp_master
|
34773
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
34774
|
+
[0m
|
34775
|
+
[1m[35m (0.8ms)[0m CREATE INDEX "index_payola_sales_on_email" ON "payola_sales" ("email")
|
34776
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
34777
|
+
FROM sqlite_master
|
34778
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
34779
|
+
UNION ALL
|
34780
|
+
SELECT sql
|
34781
|
+
FROM sqlite_temp_master
|
34782
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
34783
|
+
[0m
|
34784
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
34785
|
+
FROM sqlite_master
|
34786
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
34787
|
+
UNION ALL
|
34788
|
+
SELECT sql
|
34789
|
+
FROM sqlite_temp_master
|
34790
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
34791
|
+
|
34792
|
+
[1m[36m (0.7ms)[0m [1mCREATE INDEX "index_payola_sales_on_guid" ON "payola_sales" ("guid")[0m
|
34793
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
34794
|
+
FROM sqlite_master
|
34795
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
34796
|
+
UNION ALL
|
34797
|
+
SELECT sql
|
34798
|
+
FROM sqlite_temp_master
|
34799
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
34800
|
+
|
34801
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
34802
|
+
FROM sqlite_master
|
34803
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
34804
|
+
UNION ALL
|
34805
|
+
SELECT sql
|
34806
|
+
FROM sqlite_temp_master
|
34807
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
34808
|
+
[0m
|
34809
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
34810
|
+
FROM sqlite_master
|
34811
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
34812
|
+
UNION ALL
|
34813
|
+
SELECT sql
|
34814
|
+
FROM sqlite_temp_master
|
34815
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
34816
|
+
|
34817
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_payola_sales_on_owner_id_and_owner_type" ON "payola_sales" ("owner_id", "owner_type")[0m
|
34818
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
34819
|
+
FROM sqlite_master
|
34820
|
+
WHERE name='index_payola_sales_on_owner_id_and_owner_type' AND type='index'
|
34821
|
+
UNION ALL
|
34822
|
+
SELECT sql
|
34823
|
+
FROM sqlite_temp_master
|
34824
|
+
WHERE name='index_payola_sales_on_owner_id_and_owner_type' AND type='index'
|
34825
|
+
|
34826
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
34827
|
+
FROM sqlite_master
|
34828
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
34829
|
+
UNION ALL
|
34830
|
+
SELECT sql
|
34831
|
+
FROM sqlite_temp_master
|
34832
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
34833
|
+
[0m
|
34834
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
34835
|
+
FROM sqlite_master
|
34836
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
34837
|
+
UNION ALL
|
34838
|
+
SELECT sql
|
34839
|
+
FROM sqlite_temp_master
|
34840
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
34841
|
+
|
34842
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
34843
|
+
FROM sqlite_master
|
34844
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
34845
|
+
UNION ALL
|
34846
|
+
SELECT sql
|
34847
|
+
FROM sqlite_temp_master
|
34848
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
34849
|
+
[0m
|
34850
|
+
[1m[35m (0.7ms)[0m CREATE INDEX "index_payola_sales_on_product" ON "payola_sales" ("product_id", "product_type")
|
34851
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
34852
|
+
FROM sqlite_master
|
34853
|
+
WHERE name='index_payola_sales_on_product' AND type='index'
|
34854
|
+
UNION ALL
|
34855
|
+
SELECT sql
|
34856
|
+
FROM sqlite_temp_master
|
34857
|
+
WHERE name='index_payola_sales_on_product' AND type='index'
|
34858
|
+
[0m
|
34859
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
34860
|
+
FROM sqlite_master
|
34861
|
+
WHERE name='index_payola_sales_on_owner_id_and_owner_type' AND type='index'
|
34862
|
+
UNION ALL
|
34863
|
+
SELECT sql
|
34864
|
+
FROM sqlite_temp_master
|
34865
|
+
WHERE name='index_payola_sales_on_owner_id_and_owner_type' AND type='index'
|
34866
|
+
|
34867
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
34868
|
+
FROM sqlite_master
|
34869
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
34870
|
+
UNION ALL
|
34871
|
+
SELECT sql
|
34872
|
+
FROM sqlite_temp_master
|
34873
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
34874
|
+
[0m
|
34875
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
34876
|
+
FROM sqlite_master
|
34877
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
34878
|
+
UNION ALL
|
34879
|
+
SELECT sql
|
34880
|
+
FROM sqlite_temp_master
|
34881
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
34882
|
+
|
34883
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
34884
|
+
FROM sqlite_master
|
34885
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
34886
|
+
UNION ALL
|
34887
|
+
SELECT sql
|
34888
|
+
FROM sqlite_temp_master
|
34889
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
34890
|
+
[0m
|
34891
|
+
[1m[35m (0.9ms)[0m CREATE INDEX "index_payola_sales_on_stripe_customer_id" ON "payola_sales" ("stripe_customer_id")
|
34892
|
+
[1m[36m (0.9ms)[0m [1mCREATE TABLE "payola_stripe_webhooks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "stripe_id" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
34893
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "permalink" varchar(255), "price" integer, "created_at" datetime, "updated_at" datetime)
|
34894
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
34895
|
+
[1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
34896
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
34897
|
+
[1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141029140518')
|
34898
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141001230848')[0m
|
34899
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141001170138')
|
34900
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141001203541')[0m
|
34901
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141002013618')
|
34902
|
+
[1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141002013701')[0m
|
34903
|
+
[1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141002203725')
|
34904
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141017233304')[0m
|
34905
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141026101628')
|
34906
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141026144800')[0m
|
34907
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141029135848')
|
34908
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
34909
|
+
[1m[35m (0.1ms)[0m begin transaction
|
34910
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
34911
|
+
[1m[35m (0.1ms)[0m begin transaction
|
34912
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
34913
|
+
[1m[35m (0.0ms)[0m begin transaction
|
34914
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
34915
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-1' LIMIT 1
|
34916
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-07 14:31:19.215345"], ["name", "Foo"], ["permalink", "foo-1"], ["price", 100], ["updated_at", "2014-11-07 14:31:19.215345"]]
|
34917
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
34918
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
34919
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
34920
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
34921
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'op7eu8' LIMIT 1
|
34922
|
+
[1m[36mSQL (1.0ms)[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-07 14:31:19.231439"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "op7eu8"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-07 14:31:19.231439"]]
|
34923
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
34924
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
34925
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'op7eu8' AND "payola_sales"."id" != 1) LIMIT 1
|
34926
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34927
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
34928
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'op7eu8' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
34929
|
+
[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-07 14:31:19.238297"]]
|
34930
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34931
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
34932
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "state" = 'finished' WHERE "payola_sales"."id" = 1[0m
|
34933
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
34934
|
+
[1m[36mPayola::Sale Load (0.1ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1[0m [["id", 1]]
|
34935
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
34936
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
34937
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
34938
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-2' LIMIT 1[0m
|
34939
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-07 14:31:19.252672"], ["name", "Foo"], ["permalink", "foo-2"], ["price", 100], ["updated_at", "2014-11-07 14:31:19.252672"]]
|
34940
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34941
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
34942
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
34943
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
34944
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = '72svh2' LIMIT 1[0m
|
34945
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-11-07 14:31:19.255646"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "72svh2"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-07 14:31:19.255646"]]
|
34946
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34947
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
34948
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = '72svh2' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
34949
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
34950
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
34951
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = '72svh2' AND "payola_sales"."id" != 1) LIMIT 1
|
34952
|
+
[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-07 14:31:19.260162"]]
|
34953
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
34954
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
34955
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "payola_sales" SET "state" = 'finished' WHERE "payola_sales"."id" = 1
|
34956
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34957
|
+
[1m[35mPayola::Sale Load (0.0ms)[0m SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1 [["id", 1]]
|
34958
|
+
[1m[36mPayola::Sale Load (0.0ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1[0m [["id", 1]]
|
34959
|
+
[1m[35mPayola::Sale Load (0.0ms)[0m SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1 [["id", 1]]
|
34960
|
+
[1m[36mPayola::Sale Load (0.0ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1[0m [["id", 1]]
|
34961
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
34962
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
34963
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
34964
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-3' LIMIT 1[0m
|
34965
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-07 14:31:19.266882"], ["name", "Foo"], ["permalink", "foo-3"], ["price", 100], ["updated_at", "2014-11-07 14:31:19.266882"]]
|
34966
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34967
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
34968
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
34969
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
34970
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = '3n6act' LIMIT 1[0m
|
34971
|
+
[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-07 14:31:19.269565"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "3n6act"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-07 14:31:19.269565"]]
|
34972
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34973
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
34974
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = '3n6act' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
34975
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
34976
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
34977
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = '3n6act' AND "payola_sales"."id" != 1) LIMIT 1
|
34978
|
+
[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-07 14:31:19.273347"]]
|
34979
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
34980
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
34981
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "payola_sales" SET "state" = 'finished' WHERE "payola_sales"."id" = 1
|
34982
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34983
|
+
[1m[35mPayola::Sale Load (0.1ms)[0m SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1 [["id", 1]]
|
34984
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
34985
|
+
[1m[35m (0.0ms)[0m begin transaction
|
34986
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
34987
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-4' LIMIT 1
|
34988
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-07 14:31:19.280050"], ["name", "Foo"], ["permalink", "foo-4"], ["price", 100], ["updated_at", "2014-11-07 14:31:19.280050"]]
|
34989
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
34990
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
34991
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
34992
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
34993
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'hdgl7m' LIMIT 1
|
34994
|
+
[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-07 14:31:19.282618"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "hdgl7m"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-07 14:31:19.282618"]]
|
34995
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
34996
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
34997
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'hdgl7m' AND "payola_sales"."id" != 1) LIMIT 1
|
34998
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34999
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35000
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'hdgl7m' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
35001
|
+
[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-07 14:31:19.285988"]]
|
35002
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35003
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35004
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "state" = 'errored' WHERE "payola_sales"."id" = 1[0m
|
35005
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
35006
|
+
[1m[36mPayola::Sale Load (0.1ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1[0m [["id", 1]]
|
35007
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
35008
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35009
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35010
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-5' LIMIT 1[0m
|
35011
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-07 14:31:19.295465"], ["name", "Foo"], ["permalink", "foo-5"], ["price", 100], ["updated_at", "2014-11-07 14:31:19.295465"]]
|
35012
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35013
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
35014
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
35015
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35016
|
+
[1m[36mPayola::Sale Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
35017
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
35018
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35019
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35020
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-6' LIMIT 1[0m
|
35021
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-07 14:31:19.317176"], ["name", "Foo"], ["permalink", "foo-6"], ["price", 100], ["updated_at", "2014-11-07 14:31:19.317176"]]
|
35022
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35023
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
35024
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
35025
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35026
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35027
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-7' LIMIT 1
|
35028
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-07 14:31:19.322087"], ["name", "Foo"], ["permalink", "foo-7"], ["price", 100], ["updated_at", "2014-11-07 14:31:19.322087"]]
|
35029
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35030
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
35031
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
35032
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
35033
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35034
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-8' LIMIT 1[0m
|
35035
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-07 14:31:19.327238"], ["name", "Foo"], ["permalink", "foo-8"], ["price", 100], ["updated_at", "2014-11-07 14:31:19.327238"]]
|
35036
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35037
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35038
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
35039
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
35040
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'rugoa0' LIMIT 1[0m
|
35041
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-11-07 14:31:19.330273"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "rugoa0"], ["product_id", 1], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-07 14:31:19.330273"]]
|
35042
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35043
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
35044
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "owners" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-11-07 14:31:19.334699"], ["updated_at", "2014-11-07 14:31:19.334699"]]
|
35045
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35046
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35047
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'rugoa0' AND "payola_sales"."id" != 1) LIMIT 1
|
35048
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "owner_id" = ?, "owner_type" = ?, "updated_at" = ? WHERE "payola_sales"."id" = 1[0m [["owner_id", 1], ["owner_type", "Owner"], ["updated_at", "2014-11-07 14:31:19.338910"]]
|
35049
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35050
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
35051
|
+
[1m[35m (0.1ms)[0m begin transaction
|
35052
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
35053
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-9' LIMIT 1
|
35054
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-07 14:31:19.381532"], ["name", "Foo"], ["permalink", "foo-9"], ["price", 100], ["updated_at", "2014-11-07 14:31:19.381532"]]
|
35055
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35056
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35057
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
35058
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
35059
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = '9g2t60' LIMIT 1
|
35060
|
+
[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-07 14:31:19.384384"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "9g2t60"], ["product_id", 1], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-07 14:31:19.384384"]]
|
35061
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35062
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35063
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = '9g2t60' AND "payola_sales"."id" != 1) LIMIT 1
|
35064
|
+
[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-07 14:31:19.386255"]]
|
35065
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35066
|
+
[1m[36mPayola::Sale Load (0.0ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1[0m [["id", 1]]
|
35067
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
35068
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
35069
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35070
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-10' LIMIT 1[0m
|
35071
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-07 14:31:19.391855"], ["name", "Foo"], ["permalink", "foo-10"], ["price", 100], ["updated_at", "2014-11-07 14:31:19.391855"]]
|
35072
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35073
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35074
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
35075
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
35076
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'epr60a' LIMIT 1[0m
|
35077
|
+
[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-07 14:31:19.394545"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "epr60a"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-07 14:31:19.394545"]]
|
35078
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35079
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35080
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "state" = 'finished' WHERE "payola_sales"."id" = 1[0m
|
35081
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35082
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
35083
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35084
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35085
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-11' LIMIT 1
|
35086
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-07 14:31:19.400766"], ["name", "Foo"], ["permalink", "foo-11"], ["price", 100], ["updated_at", "2014-11-07 14:31:19.400766"]]
|
35087
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35088
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35089
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
35090
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
35091
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'qdd3hj' LIMIT 1
|
35092
|
+
[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-07 14:31:19.403493"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "qdd3hj"], ["product_id", 1], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-07 14:31:19.403493"]]
|
35093
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35094
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35095
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "payola_sales" SET "state" = 'processing' WHERE "payola_sales"."id" = 1
|
35096
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35097
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
35098
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35099
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35100
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-12' LIMIT 1[0m
|
35101
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-07 14:31:19.408570"], ["name", "Foo"], ["permalink", "foo-12"], ["price", 100], ["updated_at", "2014-11-07 14:31:19.408570"]]
|
35102
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35103
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35104
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
35105
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
35106
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'qq054k' LIMIT 1[0m
|
35107
|
+
[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-07 14:31:19.411151"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "qq054k"], ["product_id", 1], ["product_type", "Product"], ["state", "finished"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-07 14:31:19.411151"]]
|
35108
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35109
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
35110
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "state" = 'refunded' WHERE "payola_sales"."id" = 1[0m
|
35111
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35112
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
35113
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35114
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35115
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-13' LIMIT 1
|
35116
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-07 14:31:19.417187"], ["name", "Foo"], ["permalink", "foo-13"], ["price", 100], ["updated_at", "2014-11-07 14:31:19.417187"]]
|
35117
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35118
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35119
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
35120
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
35121
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'prn4ph' LIMIT 1
|
35122
|
+
[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-07 14:31:19.419866"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "prn4ph"], ["product_id", 1], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-07 14:31:19.419866"]]
|
35123
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35124
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'prn4ph' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
35125
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35126
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-14' LIMIT 1[0m
|
35127
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-07 14:31:19.422935"], ["name", "Foo"], ["permalink", "foo-14"], ["price", 100], ["updated_at", "2014-11-07 14:31:19.422935"]]
|
35128
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35129
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'prn4ph' LIMIT 1
|
35130
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
35131
|
+
[1m[35m (0.1ms)[0m begin transaction
|
35132
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
35133
|
+
[1m[35mProduct Exists (0.2ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-15' LIMIT 1
|
35134
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-07 14:31:19.430702"], ["name", "Foo"], ["permalink", "foo-15"], ["price", 100], ["updated_at", "2014-11-07 14:31:19.430702"]]
|
35135
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35136
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35137
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
35138
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
35139
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'ao8ihs' LIMIT 1
|
35140
|
+
[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-07 14:31:19.433939"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "ao8ihs"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-07 14:31:19.433939"]]
|
35141
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35142
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
35143
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "payola_sales" SET "state" = 'errored' WHERE "payola_sales"."id" = 1
|
35144
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35145
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
35146
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35147
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
35148
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35149
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
35150
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-16' LIMIT 1[0m
|
35151
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-07 14:31:19.445754"], ["name", "Foo"], ["permalink", "foo-16"], ["price", 100], ["updated_at", "2014-11-07 14:31:19.445754"]]
|
35152
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35153
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35154
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-17' LIMIT 1[0m
|
35155
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-07 14:31:19.448619"], ["name", "Foo"], ["permalink", "foo-17"], ["price", 100], ["updated_at", "2014-11-07 14:31:19.448619"]]
|
35156
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35157
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35158
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
35159
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
35160
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = '8n2u29' LIMIT 1[0m
|
35161
|
+
[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-07 14:31:19.451235"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "8n2u29"], ["product_id", 2], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-07 14:31:19.451235"]]
|
35162
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35163
|
+
Processing by Payola::TransactionsController#show as HTML
|
35164
|
+
Parameters: {"guid"=>"8n2u29"}
|
35165
|
+
[1m[35mPayola::Sale Load (0.1ms)[0m SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."guid" = '8n2u29' LIMIT 1
|
35166
|
+
[1m[36mProduct Load (0.1ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1[0m [["id", 2]]
|
35167
|
+
Redirected to http://test.host/
|
35168
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
|
35169
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
35170
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35171
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35172
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-18' LIMIT 1[0m
|
35173
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-07 14:31:19.464251"], ["name", "Foo"], ["permalink", "foo-18"], ["price", 100], ["updated_at", "2014-11-07 14:31:19.464251"]]
|
35174
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35175
|
+
Processing by Payola::TransactionsController#status as HTML
|
35176
|
+
Parameters: {"guid"=>"doesnotexist"}
|
35177
|
+
[1m[35mPayola::Sale Load (0.1ms)[0m SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."guid" = 'doesnotexist' ORDER BY "payola_sales"."id" ASC LIMIT 1
|
35178
|
+
Completed 404 Not Found in 12ms (Views: 11.0ms | ActiveRecord: 0.1ms)
|
35179
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
35180
|
+
[1m[35m (0.1ms)[0m begin transaction
|
35181
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35182
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-19' LIMIT 1
|
35183
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-07 14:31:19.481588"], ["name", "Foo"], ["permalink", "foo-19"], ["price", 100], ["updated_at", "2014-11-07 14:31:19.481588"]]
|
35184
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35185
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35186
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-20' LIMIT 1
|
35187
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-07 14:31:19.484060"], ["name", "Foo"], ["permalink", "foo-20"], ["price", 100], ["updated_at", "2014-11-07 14:31:19.484060"]]
|
35188
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35189
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35190
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
35191
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
35192
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'qhrikv' LIMIT 1
|
35193
|
+
[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-07 14:31:19.486961"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "qhrikv"], ["product_id", 2], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-07 14:31:19.486961"]]
|
35194
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35195
|
+
Processing by Payola::TransactionsController#status as HTML
|
35196
|
+
Parameters: {"guid"=>"qhrikv"}
|
35197
|
+
[1m[36mPayola::Sale Load (0.2ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."guid" = 'qhrikv' ORDER BY "payola_sales"."id" ASC LIMIT 1[0m
|
35198
|
+
Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
|
35199
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
35200
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35201
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35202
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-21' LIMIT 1[0m
|
35203
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-07 14:31:19.495298"], ["name", "Foo"], ["permalink", "foo-21"], ["price", 100], ["updated_at", "2014-11-07 14:31:19.495298"]]
|
35204
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35205
|
+
Processing by Payola::TransactionsController#create as HTML
|
35206
|
+
Parameters: {"product_class"=>"product", "permalink"=>"foo-21"}
|
35207
|
+
[1m[35mProduct Load (0.1ms)[0m SELECT "products".* FROM "products" WHERE "products"."permalink" = 'foo-21' LIMIT 1
|
35208
|
+
[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
|
35209
|
+
[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
|
35210
|
+
Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 0.6ms)
|
35211
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
35212
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35213
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35214
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-22' LIMIT 1
|
35215
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-07 14:31:19.510476"], ["name", "Foo"], ["permalink", "foo-22"], ["price", 100], ["updated_at", "2014-11-07 14:31:19.510476"]]
|
35216
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35217
|
+
Processing by Payola::TransactionsController#create as HTML
|
35218
|
+
Parameters: {"product_class"=>"product", "permalink"=>"foo-22"}
|
35219
|
+
[1m[36mProduct Load (0.1ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."permalink" = 'foo-22' LIMIT 1[0m
|
35220
|
+
[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
|
35221
|
+
[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
|
35222
|
+
Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
|
35223
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
35224
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
35225
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
35226
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
35227
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
35228
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
35229
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
35230
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
35231
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
35232
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
35233
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
35234
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
35235
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
35236
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35237
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
35238
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35239
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
35240
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35241
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
35242
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35243
|
+
[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
|
35244
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
35245
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35246
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35247
|
+
[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
|
35248
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "payola_stripe_webhooks" ("created_at", "stripe_id", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 14:31:19.593492"], ["stripe_id", "test_id"], ["updated_at", "2014-11-07 14:31:19.593492"]]
|
35249
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35250
|
+
[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
|
35251
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
35252
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35253
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
35254
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35255
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
35256
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35257
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35258
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-23' LIMIT 1[0m
|
35259
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-07 14:31:19.600196"], ["name", "Foo"], ["permalink", "foo-23"], ["price", 100], ["updated_at", "2014-11-07 14:31:19.600196"]]
|
35260
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35261
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
35262
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35263
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35264
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-24' LIMIT 1[0m
|
35265
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-07 14:31:19.603914"], ["name", "Foo"], ["permalink", "foo-24"], ["price", 100], ["updated_at", "2014-11-07 14:31:19.603914"]]
|
35266
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35267
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
35268
|
+
[1m[36mPayola::Affiliate Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_affiliates" WHERE "payola_affiliates"."code" = 'MyString' LIMIT 1[0m
|
35269
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "payola_affiliates" ("code", "created_at", "email", "percent", "updated_at") VALUES (?, ?, ?, ?, ?) [["code", "MyString"], ["created_at", "2014-11-07 14:31:19.610603"], ["email", "foo@example.com"], ["percent", 100], ["updated_at", "2014-11-07 14:31:19.610603"]]
|
35270
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35271
|
+
[1m[35mPayola::Affiliate Load (0.2ms)[0m SELECT "payola_affiliates".* FROM "payola_affiliates" WHERE "payola_affiliates"."id" = ? LIMIT 1 [["id", 1]]
|
35272
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
35273
|
+
[1m[35m (0.1ms)[0m begin transaction
|
35274
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35275
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-25' LIMIT 1
|
35276
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-07 14:31:19.620405"], ["name", "Foo"], ["permalink", "foo-25"], ["price", 100], ["updated_at", "2014-11-07 14:31:19.620405"]]
|
35277
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35278
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
35279
|
+
[1m[35mPayola::Coupon Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_coupons" WHERE "payola_coupons"."code" = 'MyString' LIMIT 1
|
35280
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "payola_coupons" ("code", "created_at", "percent_off", "updated_at") VALUES (?, ?, ?, ?)[0m [["code", "MyString"], ["created_at", "2014-11-07 14:31:19.626612"], ["percent_off", 1], ["updated_at", "2014-11-07 14:31:19.626612"]]
|
35281
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35282
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
35283
|
+
[1m[35m (0.1ms)[0m begin transaction
|
35284
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
35285
|
+
[1m[35mProduct Exists (0.2ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-26' LIMIT 1
|
35286
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-07 14:31:19.634069"], ["name", "Foo"], ["permalink", "foo-26"], ["price", 100], ["updated_at", "2014-11-07 14:31:19.634069"]]
|
35287
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35288
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35289
|
+
[1m[35mPayola::Coupon Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_coupons" WHERE "payola_coupons"."code" = 'MyString' LIMIT 1
|
35290
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "payola_coupons" ("code", "created_at", "percent_off", "updated_at") VALUES (?, ?, ?, ?)[0m [["code", "MyString"], ["created_at", "2014-11-07 14:31:19.636213"], ["percent_off", 1], ["updated_at", "2014-11-07 14:31:19.636213"]]
|
35291
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35292
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
35293
|
+
[1m[35m (0.1ms)[0m begin transaction
|
35294
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
35295
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35296
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
35297
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35298
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
35299
|
+
[1m[35m (0.1ms)[0m begin transaction
|
35300
|
+
[1m[36mProduct Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'f' LIMIT 1[0m
|
35301
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
35302
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
35303
|
+
[1m[35mProduct Exists (0.2ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-28' LIMIT 1
|
35304
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
35305
|
+
[1m[35m (0.1ms)[0m begin transaction
|
35306
|
+
[1m[36mProduct Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-29' LIMIT 1[0m
|
35307
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
35308
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
35309
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
35310
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35311
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
35312
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
35313
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
35314
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35315
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
35316
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35317
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
35318
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35319
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
35320
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35321
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
35322
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35323
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
35324
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35325
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
35326
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35327
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
35328
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35329
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
35330
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35331
|
+
[1m[35m (0.1ms)[0m rollback transaction
|