payola-payments 1.0.8 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +8 -8
  2. data/app/assets/javascripts/payola/checkout_button.js +21 -12
  3. data/app/controllers/payola/transactions_controller.rb +1 -1
  4. data/app/mailers/payola/admin_mailer.rb +35 -0
  5. data/app/mailers/payola/receipt_mailer.rb +47 -0
  6. data/app/models/payola/sale.rb +10 -2
  7. data/app/services/payola/create_sale.rb +1 -1
  8. data/app/services/payola/process_sale.rb +7 -0
  9. data/app/services/payola/send_mail.rb +7 -0
  10. data/app/views/payola/admin_mailer/dispute.html.erb +10 -0
  11. data/app/views/payola/admin_mailer/failure.html.erb +11 -0
  12. data/app/views/payola/admin_mailer/receipt.html.erb +10 -0
  13. data/app/views/payola/admin_mailer/refund.html.erb +10 -0
  14. data/app/views/payola/receipt_mailer/receipt.html.erb +4 -0
  15. data/app/views/payola/receipt_mailer/receipt.text.erb +7 -0
  16. data/app/views/payola/receipt_mailer/receipt_pdf.html.erb +83 -0
  17. data/app/views/payola/receipt_mailer/refund.html.erb +8 -0
  18. data/app/views/payola/transactions/_checkout.html.erb +31 -23
  19. data/db/migrate/20141029135848_add_owner_to_payola_sale.rb +8 -0
  20. data/lib/generators/payola/install_generator.rb +1 -1
  21. data/lib/payola.rb +33 -5
  22. data/lib/payola/version.rb +1 -1
  23. data/lib/payola/worker/active_job.rb +4 -4
  24. data/lib/payola/worker/base.rb +2 -2
  25. data/lib/payola/worker/sidekiq.rb +2 -2
  26. data/lib/payola/worker/sucker_punch.rb +2 -2
  27. data/spec/dummy/app/models/owner.rb +2 -0
  28. data/spec/dummy/db/development.sqlite3 +0 -0
  29. data/spec/dummy/db/migrate/20141029140518_create_owners.rb +8 -0
  30. data/spec/dummy/db/schema.rb +9 -1
  31. data/spec/dummy/db/test.sqlite3 +0 -0
  32. data/spec/dummy/log/development.log +1946 -0
  33. data/spec/dummy/log/test.log +10516 -0
  34. data/spec/dummy/tmp/cache/assets/development/sprockets/0e585aeb88c1555ae8f5292f7c7a9068 +0 -0
  35. data/spec/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  36. data/spec/dummy/tmp/cache/assets/development/sprockets/5afa4bc970e0bc781b3500c696ba25ff +0 -0
  37. data/spec/dummy/tmp/cache/assets/development/sprockets/664efeb51d1b486dcfc30d142db56f3c +0 -0
  38. data/spec/dummy/tmp/cache/assets/development/sprockets/68a3bbdc64a0729b5896fa1e33fce4b1 +0 -0
  39. data/spec/dummy/tmp/cache/assets/development/sprockets/b83da90cb58011313e13a97a4a41cb6e +0 -0
  40. data/spec/dummy/tmp/cache/assets/development/sprockets/c0b954b40f2881a6d286061bc069643e +0 -0
  41. data/spec/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  42. data/spec/dummy/tmp/cache/assets/development/sprockets/d9856638a3c7b9cfd9d1b884e3b33982 +0 -0
  43. data/spec/dummy/tmp/cache/assets/development/sprockets/ef82c31948061751bb026663b54484e1 +0 -0
  44. data/spec/dummy/tmp/cache/assets/development/sprockets/f0b5d4bea0c6cdd1904e1e9a0a45532f +0 -0
  45. data/spec/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  46. data/spec/models/payola/sale_spec.rb +16 -0
  47. data/spec/payola_spec.rb +32 -0
  48. data/spec/worker_spec.rb +8 -6
  49. metadata +19 -2
@@ -0,0 +1,8 @@
1
+ class AddOwnerToPayolaSale < ActiveRecord::Migration
2
+ def change
3
+ add_column :payola_sales, :owner_id, :integer
4
+ add_column :payola_sales, :owner_type, :string
5
+
6
+ add_index :payola_sales, [:owner_id, :owner_type]
7
+ end
8
+ end
@@ -7,7 +7,7 @@ module Payola
7
7
  end
8
8
 
9
9
  def install_js
10
- inject_into_file 'app/assets/javascripts/application.js', before: "//= require_tree .\n" do <<-'JS'
10
+ inject_into_file 'app/assets/javascripts/application.js', after: "//= require jquery\n" do <<-'JS'
11
11
  //= require payola
12
12
  JS
13
13
  end
data/lib/payola.rb CHANGED
@@ -13,7 +13,9 @@ module Payola
13
13
  :event_filter,
14
14
  :support_email,
15
15
  :sellables,
16
- :charge_verifier
16
+ :charge_verifier,
17
+ :default_currency,
18
+ :pdf_receipt
17
19
 
18
20
  def configure(&block)
19
21
  raise ArgumentError, "must provide a block" unless block_given?
@@ -40,16 +42,20 @@ module Payola
40
42
  StripeEvent.all(callable)
41
43
  end
42
44
 
43
- def queue!(sale)
45
+ def queue!(klass, *args)
44
46
  if background_worker.is_a? Symbol
45
- Payola::Worker.find(background_worker).call(sale)
47
+ Payola::Worker.find(background_worker).call(klass, *args)
46
48
  elsif background_worker.respond_to?(:call)
47
- background_worker.call(sale)
49
+ background_worker.call(klass, *args)
48
50
  else
49
- Payola::Worker.autofind.call(sale)
51
+ Payola::Worker.autofind.call(klass, *args)
50
52
  end
51
53
  end
52
54
 
55
+ def send_mail(mailer, method, *args)
56
+ Payola.queue!(Payola::SendMail, mailer, method, *args)
57
+ end
58
+
53
59
  def reset!
54
60
  StripeEvent.event_retriever = Retriever
55
61
 
@@ -61,12 +67,34 @@ module Payola
61
67
  self.secret_key_retriever = lambda { |sale| Payola.secret_key }
62
68
  self.publishable_key_retriever = lambda { |sale| Payola.publishable_key }
63
69
  self.support_email = 'sales@example.com'
70
+ self.default_currency = 'usd'
64
71
  self.sellables = {}
72
+ self.pdf_receipt = false
65
73
  end
66
74
 
67
75
  def register_sellable(klass)
68
76
  sellables[klass.product_class] = klass
69
77
  end
78
+
79
+ def send_email_for(*emails)
80
+ possible_emails = {
81
+ receipt: [ 'payola.sale.finished', Payola::ReceiptMailer, :receipt ],
82
+ refund: [ 'charge.refunded', Payola::ReceiptMailer, :refund ],
83
+ admin_receipt: [ 'payola.sale.finished', Payola::AdminMailer, :receipt ],
84
+ admin_dispute: [ 'dispute.created', Payola::AdminMailer, :dispute ],
85
+ admin_refund: [ 'payola.sale.refunded', Payola::AdminMailer, :refund ],
86
+ admin_failure: [ 'payola.sale.failed', Payola::AdminMailer, :failure ],
87
+ }
88
+
89
+ emails.each do |email|
90
+ spec = possible_emails[email].dup
91
+ if spec
92
+ Payola.subscribe(spec.shift) do |sale|
93
+ Payola.send_mail(*(spec + [sale.guid]))
94
+ end
95
+ end
96
+ end
97
+ end
70
98
  end
71
99
 
72
100
  class Retriever
@@ -1,3 +1,3 @@
1
1
  module Payola
2
- VERSION = "1.0.8"
2
+ VERSION = "1.1.0"
3
3
  end
@@ -9,12 +9,12 @@ module Payola
9
9
  defined?(::ActiveJob::Core)
10
10
  end
11
11
 
12
- def self.call(sale)
13
- perform_later(sale.guid)
12
+ def self.call(klass, *args)
13
+ perform_later(klass, *args)
14
14
  end
15
15
 
16
- def perform(guid)
17
- Sale.where(guid: guid).first.process!
16
+ def perform(klass, *args)
17
+ klass.call(*args)
18
18
  end
19
19
  end
20
20
  end
@@ -1,8 +1,8 @@
1
1
  module Payola
2
2
  module Worker
3
3
  class BaseWorker
4
- def perform(guid)
5
- Sale.where(guid: guid).first.process!
4
+ def perform(klass, *args)
5
+ klass.call(*args)
6
6
  end
7
7
  end
8
8
  end
@@ -12,8 +12,8 @@ module Payola
12
12
  defined?(::Sidekiq::Worker)
13
13
  end
14
14
 
15
- def self.call(sale)
16
- perform_async(sale.guid)
15
+ def self.call(klass, *args)
16
+ perform_async(klass, *args)
17
17
  end
18
18
  end
19
19
  end
@@ -12,8 +12,8 @@ module Payola
12
12
  defined?(::SuckerPunch::Job)
13
13
  end
14
14
 
15
- def self.call(sale)
16
- new.async.perform(sale.guid)
15
+ def self.call(klass, *args)
16
+ new.async.perform(klass, *args)
17
17
  end
18
18
  end
19
19
  end
@@ -0,0 +1,2 @@
1
+ class Owner < ActiveRecord::Base
2
+ end
Binary file
@@ -0,0 +1,8 @@
1
+ class CreateOwners < ActiveRecord::Migration
2
+ def change
3
+ create_table :owners do |t|
4
+
5
+ t.timestamps
6
+ end
7
+ end
8
+ end
@@ -11,7 +11,12 @@
11
11
  #
12
12
  # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(version: 20141026144800) do
14
+ ActiveRecord::Schema.define(version: 20141029140518) do
15
+
16
+ create_table "owners", force: true do |t|
17
+ t.datetime "created_at"
18
+ t.datetime "updated_at"
19
+ end
15
20
 
16
21
  create_table "payola_affiliates", force: true do |t|
17
22
  t.string "code"
@@ -53,11 +58,14 @@ ActiveRecord::Schema.define(version: 20141026144800) do
53
58
  t.string "stripe_customer_id"
54
59
  t.string "currency"
55
60
  t.text "signed_custom_fields"
61
+ t.integer "owner_id"
62
+ t.string "owner_type"
56
63
  end
57
64
 
58
65
  add_index "payola_sales", ["coupon_id"], name: "index_payola_sales_on_coupon_id"
59
66
  add_index "payola_sales", ["email"], name: "index_payola_sales_on_email"
60
67
  add_index "payola_sales", ["guid"], name: "index_payola_sales_on_guid"
68
+ add_index "payola_sales", ["owner_id", "owner_type"], name: "index_payola_sales_on_owner_id_and_owner_type"
61
69
  add_index "payola_sales", ["product_id", "product_type"], name: "index_payola_sales_on_product"
62
70
  add_index "payola_sales", ["stripe_customer_id"], name: "index_payola_sales_on_stripe_customer_id"
63
71
 
Binary file
@@ -2161,3 +2161,1949 @@ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-26 09:41:01
2161
2161
   (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141002013701')
2162
2162
   (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141002203725')
2163
2163
   (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141017233304')
2164
+
2165
+
2166
+ Started GET "/" for 127.0.0.1 at 2014-10-28 07:59:00 -0400
2167
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
2168
+ Processing by Rails::WelcomeController#index as HTML
2169
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/railties-4.1.6/lib/rails/templates/rails/welcome/index.html.erb (2.1ms)
2170
+ Completed 200 OK in 9ms (Views: 8.8ms | ActiveRecord: 0.0ms)
2171
+
2172
+
2173
+ Started GET "/buy" for 127.0.0.1 at 2014-10-28 07:59:03 -0400
2174
+ Processing by BuyController#index as HTML
2175
+ Product Load (0.5ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
2176
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_checkout.html.erb (144.0ms)
2177
+ Rendered buy/index.html.erb within layouts/application (149.9ms)
2178
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_stripe_header.html.erb (0.4ms)
2179
+ Completed 200 OK in 242ms (Views: 232.9ms | ActiveRecord: 1.1ms)
2180
+
2181
+
2182
+ Started GET "/assets/buy.css?body=1" for 127.0.0.1 at 2014-10-28 07:59:04 -0400
2183
+
2184
+
2185
+ Started GET "/assets/buy.js?body=1" for 127.0.0.1 at 2014-10-28 07:59:04 -0400
2186
+
2187
+
2188
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-28 07:59:04 -0400
2189
+
2190
+
2191
+ Started GET "/assets/payola/application.js?body=1" for 127.0.0.1 at 2014-10-28 07:59:04 -0400
2192
+
2193
+
2194
+ Started GET "/assets/payola/checkout_button.js?body=1" for 127.0.0.1 at 2014-10-28 07:59:04 -0400
2195
+
2196
+
2197
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-28 07:59:04 -0400
2198
+
2199
+
2200
+ Started GET "/assets/payola/form.js?body=1" for 127.0.0.1 at 2014-10-28 07:59:04 -0400
2201
+
2202
+
2203
+ Started GET "/assets/payola.js?body=1" for 127.0.0.1 at 2014-10-28 07:59:04 -0400
2204
+
2205
+
2206
+ Started GET "/buy" for 127.0.0.1 at 2014-10-28 07:59:55 -0400
2207
+ Processing by BuyController#index as HTML
2208
+ Product Load (0.1ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
2209
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_checkout.html.erb (12.1ms)
2210
+ Rendered buy/index.html.erb within layouts/application (13.8ms)
2211
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_stripe_header.html.erb (0.1ms)
2212
+ Completed 200 OK in 94ms (Views: 84.2ms | ActiveRecord: 1.2ms)
2213
+
2214
+
2215
+ Started GET "/assets/buy.css?body=1" for 127.0.0.1 at 2014-10-28 07:59:55 -0400
2216
+
2217
+
2218
+ Started GET "/assets/payola/form.js?body=1" for 127.0.0.1 at 2014-10-28 07:59:55 -0400
2219
+
2220
+
2221
+ Started GET "/assets/buy.js?body=1" for 127.0.0.1 at 2014-10-28 07:59:55 -0400
2222
+
2223
+
2224
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-28 07:59:55 -0400
2225
+
2226
+
2227
+ Started GET "/assets/payola/checkout_button.js?body=1" for 127.0.0.1 at 2014-10-28 07:59:55 -0400
2228
+
2229
+
2230
+ Started GET "/assets/payola/application.js?body=1" for 127.0.0.1 at 2014-10-28 07:59:55 -0400
2231
+
2232
+
2233
+ Started GET "/assets/payola.js?body=1" for 127.0.0.1 at 2014-10-28 07:59:55 -0400
2234
+
2235
+
2236
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-28 07:59:55 -0400
2237
+
2238
+
2239
+ Started GET "/buy" for 127.0.0.1 at 2014-10-28 08:00:13 -0400
2240
+ Processing by BuyController#index as HTML
2241
+ Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
2242
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_checkout.html.erb (5.0ms)
2243
+ Rendered buy/index.html.erb within layouts/application (7.1ms)
2244
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_stripe_header.html.erb (0.1ms)
2245
+ Completed 200 OK in 60ms (Views: 58.9ms | ActiveRecord: 0.2ms)
2246
+
2247
+
2248
+ Started GET "/assets/buy.css?body=1" for 127.0.0.1 at 2014-10-28 08:00:13 -0400
2249
+
2250
+
2251
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-28 08:00:13 -0400
2252
+
2253
+
2254
+ Started GET "/assets/payola/checkout_button.js?body=1" for 127.0.0.1 at 2014-10-28 08:00:13 -0400
2255
+
2256
+
2257
+ Started GET "/assets/buy.js?body=1" for 127.0.0.1 at 2014-10-28 08:00:13 -0400
2258
+
2259
+
2260
+ Started GET "/assets/payola/form.js?body=1" for 127.0.0.1 at 2014-10-28 08:00:13 -0400
2261
+
2262
+
2263
+ Started GET "/assets/payola/application.js?body=1" for 127.0.0.1 at 2014-10-28 08:00:13 -0400
2264
+
2265
+
2266
+ Started GET "/assets/payola.js?body=1" for 127.0.0.1 at 2014-10-28 08:00:13 -0400
2267
+
2268
+
2269
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-28 08:00:13 -0400
2270
+
2271
+
2272
+ Started GET "/buy" for 127.0.0.1 at 2014-10-28 08:01:33 -0400
2273
+ Processing by BuyController#index as HTML
2274
+ Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
2275
+ Rendered buy/index.html.erb within layouts/application (0.9ms)
2276
+ Completed 500 Internal Server Error in 6ms
2277
+
2278
+ SyntaxError (/Users/peter/devel/payola/spec/dummy/app/views/buy/index.html.erb:1: syntax error, unexpected tSTRING_BEG, expecting keyword_do or '{' or '('
2279
+ ...s: 'not-a-class', panel_label '{{amount}}' );@output_buffer....
2280
+ ... ^):
2281
+ app/views/buy/index.html.erb:1: syntax error, unexpected tSTRING_BEG, expecting keyword_do or '{' or '('
2282
+
2283
+
2284
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.7ms)
2285
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.1ms)
2286
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.2ms)
2287
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (51.1ms)
2288
+
2289
+
2290
+ Started GET "/buy" for 127.0.0.1 at 2014-10-28 08:01:39 -0400
2291
+ Processing by BuyController#index as HTML
2292
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
2293
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_checkout.html.erb (4.3ms)
2294
+ Rendered buy/index.html.erb within layouts/application (6.3ms)
2295
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_stripe_header.html.erb (0.1ms)
2296
+ Completed 200 OK in 80ms (Views: 78.8ms | ActiveRecord: 0.3ms)
2297
+
2298
+
2299
+ Started GET "/assets/buy.css?body=1" for 127.0.0.1 at 2014-10-28 08:01:39 -0400
2300
+
2301
+
2302
+ Started GET "/assets/payola/application.js?body=1" for 127.0.0.1 at 2014-10-28 08:01:39 -0400
2303
+
2304
+
2305
+ Started GET "/assets/payola/checkout_button.js?body=1" for 127.0.0.1 at 2014-10-28 08:01:39 -0400
2306
+
2307
+
2308
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-28 08:01:39 -0400
2309
+
2310
+
2311
+ Started GET "/assets/buy.js?body=1" for 127.0.0.1 at 2014-10-28 08:01:39 -0400
2312
+
2313
+
2314
+ Started GET "/assets/payola/form.js?body=1" for 127.0.0.1 at 2014-10-28 08:01:39 -0400
2315
+
2316
+
2317
+ Started GET "/assets/payola.js?body=1" for 127.0.0.1 at 2014-10-28 08:01:39 -0400
2318
+
2319
+
2320
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-28 08:01:39 -0400
2321
+
2322
+
2323
+ Started GET "/buy" for 127.0.0.1 at 2014-10-28 08:01:55 -0400
2324
+ Processing by BuyController#index as HTML
2325
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
2326
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_checkout.html.erb (2.7ms)
2327
+ Rendered buy/index.html.erb within layouts/application (8.5ms)
2328
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_stripe_header.html.erb (0.1ms)
2329
+ Completed 200 OK in 89ms (Views: 87.4ms | ActiveRecord: 0.3ms)
2330
+
2331
+
2332
+ Started GET "/assets/buy.css?body=1" for 127.0.0.1 at 2014-10-28 08:01:55 -0400
2333
+
2334
+
2335
+ Started GET "/assets/payola/checkout_button.js?body=1" for 127.0.0.1 at 2014-10-28 08:01:55 -0400
2336
+
2337
+
2338
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-28 08:01:55 -0400
2339
+
2340
+
2341
+ Started GET "/assets/payola/application.js?body=1" for 127.0.0.1 at 2014-10-28 08:01:55 -0400
2342
+
2343
+
2344
+ Started GET "/assets/buy.js?body=1" for 127.0.0.1 at 2014-10-28 08:01:55 -0400
2345
+
2346
+
2347
+ Started GET "/assets/payola/form.js?body=1" for 127.0.0.1 at 2014-10-28 08:01:55 -0400
2348
+
2349
+
2350
+ Started GET "/assets/payola.js?body=1" for 127.0.0.1 at 2014-10-28 08:01:55 -0400
2351
+
2352
+
2353
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-28 08:01:55 -0400
2354
+
2355
+
2356
+ Started GET "/buy" for 127.0.0.1 at 2014-10-28 08:06:02 -0400
2357
+ Processing by BuyController#index as HTML
2358
+ Product Load (0.1ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
2359
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_checkout.html.erb (12.3ms)
2360
+ Rendered buy/index.html.erb within layouts/application (14.2ms)
2361
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_stripe_header.html.erb (0.1ms)
2362
+ Completed 200 OK in 89ms (Views: 80.9ms | ActiveRecord: 0.9ms)
2363
+
2364
+
2365
+ Started GET "/assets/buy.css?body=1" for 127.0.0.1 at 2014-10-28 08:06:02 -0400
2366
+
2367
+
2368
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-28 08:06:02 -0400
2369
+
2370
+
2371
+ Started GET "/assets/payola/checkout_button.js?body=1" for 127.0.0.1 at 2014-10-28 08:06:02 -0400
2372
+
2373
+
2374
+ Started GET "/assets/buy.js?body=1" for 127.0.0.1 at 2014-10-28 08:06:02 -0400
2375
+
2376
+
2377
+ Started GET "/assets/payola/form.js?body=1" for 127.0.0.1 at 2014-10-28 08:06:02 -0400
2378
+
2379
+
2380
+ Started GET "/assets/payola/application.js?body=1" for 127.0.0.1 at 2014-10-28 08:06:02 -0400
2381
+
2382
+
2383
+ Started GET "/assets/payola.js?body=1" for 127.0.0.1 at 2014-10-28 08:06:02 -0400
2384
+
2385
+
2386
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-28 08:06:02 -0400
2387
+
2388
+
2389
+ Started GET "/" for 127.0.0.1 at 2014-10-28 14:45:44 -0400
2390
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
2391
+ Processing by Rails::WelcomeController#index as HTML
2392
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/railties-4.1.6/lib/rails/templates/rails/welcome/index.html.erb (4.2ms)
2393
+ Completed 200 OK in 15ms (Views: 14.8ms | ActiveRecord: 0.0ms)
2394
+
2395
+
2396
+ Started GET "/buy" for 127.0.0.1 at 2014-10-28 14:45:46 -0400
2397
+ Processing by BuyController#index as HTML
2398
+ Product Load (0.6ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
2399
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_checkout.html.erb (163.1ms)
2400
+ Rendered buy/index.html.erb within layouts/application (169.1ms)
2401
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_stripe_header.html.erb (0.8ms)
2402
+ Completed 200 OK in 272ms (Views: 261.5ms | ActiveRecord: 1.2ms)
2403
+
2404
+
2405
+ Started GET "/assets/buy.css?body=1" for 127.0.0.1 at 2014-10-28 14:45:46 -0400
2406
+
2407
+
2408
+ Started GET "/assets/buy.js?body=1" for 127.0.0.1 at 2014-10-28 14:45:47 -0400
2409
+
2410
+
2411
+ Started GET "/assets/payola.js?body=1" for 127.0.0.1 at 2014-10-28 14:45:47 -0400
2412
+
2413
+
2414
+ Started GET "/assets/payola/form.js?body=1" for 127.0.0.1 at 2014-10-28 14:45:47 -0400
2415
+
2416
+
2417
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-28 14:45:47 -0400
2418
+
2419
+
2420
+ Started GET "/assets/payola/checkout_button.js?body=1" for 127.0.0.1 at 2014-10-28 14:45:47 -0400
2421
+
2422
+
2423
+ Started GET "/assets/payola/application.js?body=1" for 127.0.0.1 at 2014-10-28 14:45:47 -0400
2424
+
2425
+
2426
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-28 14:45:47 -0400
2427
+
2428
+
2429
+ Started GET "/buy" for 127.0.0.1 at 2014-10-28 14:47:36 -0400
2430
+ Processing by BuyController#index as HTML
2431
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
2432
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_checkout.html.erb (5.0ms)
2433
+ Rendered buy/index.html.erb within layouts/application (7.1ms)
2434
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_stripe_header.html.erb (0.0ms)
2435
+ Completed 200 OK in 103ms (Views: 101.2ms | ActiveRecord: 0.3ms)
2436
+
2437
+
2438
+ Started GET "/assets/buy.css?body=1" for 127.0.0.1 at 2014-10-28 14:47:36 -0400
2439
+
2440
+
2441
+ Started GET "/assets/payola/checkout_button.js?body=1" for 127.0.0.1 at 2014-10-28 14:47:36 -0400
2442
+
2443
+
2444
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-28 14:47:36 -0400
2445
+
2446
+
2447
+ Started GET "/assets/payola/application.js?body=1" for 127.0.0.1 at 2014-10-28 14:47:36 -0400
2448
+
2449
+
2450
+ Started GET "/assets/buy.js?body=1" for 127.0.0.1 at 2014-10-28 14:47:36 -0400
2451
+
2452
+
2453
+ Started GET "/assets/payola/form.js?body=1" for 127.0.0.1 at 2014-10-28 14:47:36 -0400
2454
+
2455
+
2456
+ Started GET "/assets/payola.js?body=1" for 127.0.0.1 at 2014-10-28 14:47:36 -0400
2457
+
2458
+
2459
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-28 14:47:36 -0400
2460
+
2461
+
2462
+ Started POST "/subdir/payola/buy/product/foo" for 127.0.0.1 at 2014-10-28 14:48:05 -0400
2463
+ Processing by Payola::TransactionsController#create as HTML
2464
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"2IuIJThdxsedZZm+4RNkPb6BrXTjLdCWKYgcutw62cE=", "product_class"=>"product", "permalink"=>"foo"}
2465
+ Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."permalink" = 'foo' LIMIT 1
2466
+ Payola::Coupon Load (0.5ms) SELECT "payola_coupons".* FROM "payola_coupons" WHERE (lower(code) = lower(NULL)) ORDER BY "payola_coupons"."id" ASC LIMIT 1
2467
+ Payola::Affiliate Load (0.4ms) SELECT "payola_affiliates".* FROM "payola_affiliates" WHERE (lower(code) = lower(NULL)) ORDER BY "payola_affiliates"."id" ASC LIMIT 1
2468
+ Completed 500 Internal Server Error in 92ms
2469
+
2470
+ NoMethodError (undefined method `signed_custom_fields=' for #<Payola::Sale:0x007fc91a49e5e0>):
2471
+ activemodel (4.1.6) lib/active_model/attribute_methods.rb:435:in `method_missing'
2472
+ activerecord (4.1.6) lib/active_record/attribute_methods.rb:211:in `method_missing'
2473
+ /Users/peter/devel/payola/app/services/payola/create_sale.rb:14:in `block in call'
2474
+ activerecord (4.1.6) lib/active_record/core.rb:200:in `initialize'
2475
+ activerecord (4.1.6) lib/active_record/inheritance.rb:30:in `new'
2476
+ activerecord (4.1.6) lib/active_record/inheritance.rb:30:in `new'
2477
+ /Users/peter/devel/payola/app/services/payola/create_sale.rb:8:in `call'
2478
+ /Users/peter/devel/payola/app/controllers/payola/transactions_controller.rb:26:in `create'
2479
+ actionpack (4.1.6) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
2480
+ actionpack (4.1.6) lib/abstract_controller/base.rb:189:in `process_action'
2481
+ actionpack (4.1.6) lib/action_controller/metal/rendering.rb:10:in `process_action'
2482
+ actionpack (4.1.6) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
2483
+ activesupport (4.1.6) lib/active_support/callbacks.rb:113:in `call'
2484
+ activesupport (4.1.6) lib/active_support/callbacks.rb:113:in `call'
2485
+ activesupport (4.1.6) lib/active_support/callbacks.rb:149:in `block in halting_and_conditional'
2486
+ activesupport (4.1.6) lib/active_support/callbacks.rb:229:in `call'
2487
+ activesupport (4.1.6) lib/active_support/callbacks.rb:229:in `block in halting'
2488
+ activesupport (4.1.6) lib/active_support/callbacks.rb:166:in `call'
2489
+ activesupport (4.1.6) lib/active_support/callbacks.rb:166:in `block in halting'
2490
+ activesupport (4.1.6) lib/active_support/callbacks.rb:86:in `call'
2491
+ activesupport (4.1.6) lib/active_support/callbacks.rb:86:in `run_callbacks'
2492
+ actionpack (4.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action'
2493
+ actionpack (4.1.6) lib/action_controller/metal/rescue.rb:29:in `process_action'
2494
+ actionpack (4.1.6) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
2495
+ activesupport (4.1.6) lib/active_support/notifications.rb:159:in `block in instrument'
2496
+ activesupport (4.1.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
2497
+ activesupport (4.1.6) lib/active_support/notifications.rb:159:in `instrument'
2498
+ actionpack (4.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
2499
+ actionpack (4.1.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
2500
+ activerecord (4.1.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
2501
+ actionpack (4.1.6) lib/abstract_controller/base.rb:136:in `process'
2502
+ actionview (4.1.6) lib/action_view/rendering.rb:30:in `process'
2503
+ actionpack (4.1.6) lib/action_controller/metal.rb:196:in `dispatch'
2504
+ actionpack (4.1.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
2505
+ actionpack (4.1.6) lib/action_controller/metal.rb:232:in `block in action'
2506
+ actionpack (4.1.6) lib/action_dispatch/routing/route_set.rb:82:in `call'
2507
+ actionpack (4.1.6) lib/action_dispatch/routing/route_set.rb:82:in `dispatch'
2508
+ actionpack (4.1.6) lib/action_dispatch/routing/route_set.rb:50:in `call'
2509
+ actionpack (4.1.6) lib/action_dispatch/journey/router.rb:73:in `block in call'
2510
+ actionpack (4.1.6) lib/action_dispatch/journey/router.rb:59:in `each'
2511
+ actionpack (4.1.6) lib/action_dispatch/journey/router.rb:59:in `call'
2512
+ actionpack (4.1.6) lib/action_dispatch/routing/route_set.rb:678:in `call'
2513
+ railties (4.1.6) lib/rails/engine.rb:514:in `call'
2514
+ railties (4.1.6) lib/rails/railtie.rb:194:in `public_send'
2515
+ railties (4.1.6) lib/rails/railtie.rb:194:in `method_missing'
2516
+ actionpack (4.1.6) lib/action_dispatch/journey/router.rb:73:in `block in call'
2517
+ actionpack (4.1.6) lib/action_dispatch/journey/router.rb:59:in `each'
2518
+ actionpack (4.1.6) lib/action_dispatch/journey/router.rb:59:in `call'
2519
+ actionpack (4.1.6) lib/action_dispatch/routing/route_set.rb:678:in `call'
2520
+ rack (1.5.2) lib/rack/etag.rb:23:in `call'
2521
+ rack (1.5.2) lib/rack/conditionalget.rb:35:in `call'
2522
+ rack (1.5.2) lib/rack/head.rb:11:in `call'
2523
+ actionpack (4.1.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
2524
+ actionpack (4.1.6) lib/action_dispatch/middleware/flash.rb:254:in `call'
2525
+ rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
2526
+ rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
2527
+ actionpack (4.1.6) lib/action_dispatch/middleware/cookies.rb:560:in `call'
2528
+ activerecord (4.1.6) lib/active_record/query_cache.rb:36:in `call'
2529
+ activerecord (4.1.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'
2530
+ activerecord (4.1.6) lib/active_record/migration.rb:380:in `call'
2531
+ actionpack (4.1.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
2532
+ activesupport (4.1.6) lib/active_support/callbacks.rb:82:in `run_callbacks'
2533
+ actionpack (4.1.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
2534
+ actionpack (4.1.6) lib/action_dispatch/middleware/reloader.rb:73:in `call'
2535
+ actionpack (4.1.6) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
2536
+ actionpack (4.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
2537
+ actionpack (4.1.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
2538
+ railties (4.1.6) lib/rails/rack/logger.rb:38:in `call_app'
2539
+ railties (4.1.6) lib/rails/rack/logger.rb:20:in `block in call'
2540
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `block in tagged'
2541
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:26:in `tagged'
2542
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `tagged'
2543
+ railties (4.1.6) lib/rails/rack/logger.rb:20:in `call'
2544
+ actionpack (4.1.6) lib/action_dispatch/middleware/request_id.rb:21:in `call'
2545
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
2546
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
2547
+ activesupport (4.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
2548
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
2549
+ actionpack (4.1.6) lib/action_dispatch/middleware/static.rb:64:in `call'
2550
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
2551
+ railties (4.1.6) lib/rails/engine.rb:514:in `call'
2552
+ railties (4.1.6) lib/rails/application.rb:144:in `call'
2553
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
2554
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
2555
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
2556
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
2557
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
2558
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
2559
+
2560
+
2561
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.5ms)
2562
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.1ms)
2563
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms)
2564
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (47.7ms)
2565
+
2566
+
2567
+ Started GET "/buy" for 127.0.0.1 at 2014-10-28 14:48:29 -0400
2568
+ Processing by BuyController#index as HTML
2569
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
2570
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_checkout.html.erb (3.4ms)
2571
+ Rendered buy/index.html.erb within layouts/application (5.2ms)
2572
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_stripe_header.html.erb (0.1ms)
2573
+ Completed 200 OK in 128ms (Views: 125.9ms | ActiveRecord: 0.3ms)
2574
+
2575
+
2576
+ Started GET "/assets/buy.css?body=1" for 127.0.0.1 at 2014-10-28 14:48:29 -0400
2577
+
2578
+
2579
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-28 14:48:29 -0400
2580
+
2581
+
2582
+ Started GET "/assets/payola/form.js?body=1" for 127.0.0.1 at 2014-10-28 14:48:29 -0400
2583
+
2584
+
2585
+ Started GET "/assets/payola/application.js?body=1" for 127.0.0.1 at 2014-10-28 14:48:29 -0400
2586
+
2587
+
2588
+ Started GET "/assets/buy.js?body=1" for 127.0.0.1 at 2014-10-28 14:48:29 -0400
2589
+
2590
+
2591
+ Started GET "/assets/payola.js?body=1" for 127.0.0.1 at 2014-10-28 14:48:29 -0400
2592
+
2593
+
2594
+ Started GET "/assets/payola/checkout_button.js?body=1" for 127.0.0.1 at 2014-10-28 14:48:29 -0400
2595
+
2596
+
2597
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-28 14:48:29 -0400
2598
+
2599
+
2600
+ Started POST "/subdir/payola/buy/product/foo" for 127.0.0.1 at 2014-10-28 14:48:32 -0400
2601
+ Processing by Payola::TransactionsController#create as HTML
2602
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"2IuIJThdxsedZZm+4RNkPb6BrXTjLdCWKYgcutw62cE=", "product_class"=>"product", "permalink"=>"foo"}
2603
+ Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."permalink" = 'foo' LIMIT 1
2604
+ Payola::Coupon Load (0.2ms) SELECT "payola_coupons".* FROM "payola_coupons" WHERE (lower(code) = lower(NULL)) ORDER BY "payola_coupons"."id" ASC LIMIT 1
2605
+ Payola::Affiliate Load (0.1ms) SELECT "payola_affiliates".* FROM "payola_affiliates" WHERE (lower(code) = lower(NULL)) ORDER BY "payola_affiliates"."id" ASC LIMIT 1
2606
+ Completed 500 Internal Server Error in 150ms
2607
+
2608
+ NoMethodError (undefined method `signed_custom_fields=' for #<Payola::Sale:0x007fc91c829258>):
2609
+ activemodel (4.1.6) lib/active_model/attribute_methods.rb:435:in `method_missing'
2610
+ activerecord (4.1.6) lib/active_record/attribute_methods.rb:211:in `method_missing'
2611
+ /Users/peter/devel/payola/app/services/payola/create_sale.rb:14:in `block in call'
2612
+ activerecord (4.1.6) lib/active_record/core.rb:200:in `initialize'
2613
+ activerecord (4.1.6) lib/active_record/inheritance.rb:30:in `new'
2614
+ activerecord (4.1.6) lib/active_record/inheritance.rb:30:in `new'
2615
+ /Users/peter/devel/payola/app/services/payola/create_sale.rb:8:in `call'
2616
+ /Users/peter/devel/payola/app/controllers/payola/transactions_controller.rb:26:in `create'
2617
+ actionpack (4.1.6) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
2618
+ actionpack (4.1.6) lib/abstract_controller/base.rb:189:in `process_action'
2619
+ actionpack (4.1.6) lib/action_controller/metal/rendering.rb:10:in `process_action'
2620
+ actionpack (4.1.6) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
2621
+ activesupport (4.1.6) lib/active_support/callbacks.rb:113:in `call'
2622
+ activesupport (4.1.6) lib/active_support/callbacks.rb:113:in `call'
2623
+ activesupport (4.1.6) lib/active_support/callbacks.rb:149:in `block in halting_and_conditional'
2624
+ activesupport (4.1.6) lib/active_support/callbacks.rb:229:in `call'
2625
+ activesupport (4.1.6) lib/active_support/callbacks.rb:229:in `block in halting'
2626
+ activesupport (4.1.6) lib/active_support/callbacks.rb:166:in `call'
2627
+ activesupport (4.1.6) lib/active_support/callbacks.rb:166:in `block in halting'
2628
+ activesupport (4.1.6) lib/active_support/callbacks.rb:86:in `call'
2629
+ activesupport (4.1.6) lib/active_support/callbacks.rb:86:in `run_callbacks'
2630
+ actionpack (4.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action'
2631
+ actionpack (4.1.6) lib/action_controller/metal/rescue.rb:29:in `process_action'
2632
+ actionpack (4.1.6) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
2633
+ activesupport (4.1.6) lib/active_support/notifications.rb:159:in `block in instrument'
2634
+ activesupport (4.1.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
2635
+ activesupport (4.1.6) lib/active_support/notifications.rb:159:in `instrument'
2636
+ actionpack (4.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
2637
+ actionpack (4.1.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
2638
+ activerecord (4.1.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
2639
+ actionpack (4.1.6) lib/abstract_controller/base.rb:136:in `process'
2640
+ actionview (4.1.6) lib/action_view/rendering.rb:30:in `process'
2641
+ actionpack (4.1.6) lib/action_controller/metal.rb:196:in `dispatch'
2642
+ actionpack (4.1.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
2643
+ actionpack (4.1.6) lib/action_controller/metal.rb:232:in `block in action'
2644
+ actionpack (4.1.6) lib/action_dispatch/routing/route_set.rb:82:in `call'
2645
+ actionpack (4.1.6) lib/action_dispatch/routing/route_set.rb:82:in `dispatch'
2646
+ actionpack (4.1.6) lib/action_dispatch/routing/route_set.rb:50:in `call'
2647
+ actionpack (4.1.6) lib/action_dispatch/journey/router.rb:73:in `block in call'
2648
+ actionpack (4.1.6) lib/action_dispatch/journey/router.rb:59:in `each'
2649
+ actionpack (4.1.6) lib/action_dispatch/journey/router.rb:59:in `call'
2650
+ actionpack (4.1.6) lib/action_dispatch/routing/route_set.rb:678:in `call'
2651
+ railties (4.1.6) lib/rails/engine.rb:514:in `call'
2652
+ railties (4.1.6) lib/rails/railtie.rb:194:in `public_send'
2653
+ railties (4.1.6) lib/rails/railtie.rb:194:in `method_missing'
2654
+ actionpack (4.1.6) lib/action_dispatch/journey/router.rb:73:in `block in call'
2655
+ actionpack (4.1.6) lib/action_dispatch/journey/router.rb:59:in `each'
2656
+ actionpack (4.1.6) lib/action_dispatch/journey/router.rb:59:in `call'
2657
+ actionpack (4.1.6) lib/action_dispatch/routing/route_set.rb:678:in `call'
2658
+ rack (1.5.2) lib/rack/etag.rb:23:in `call'
2659
+ rack (1.5.2) lib/rack/conditionalget.rb:35:in `call'
2660
+ rack (1.5.2) lib/rack/head.rb:11:in `call'
2661
+ actionpack (4.1.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
2662
+ actionpack (4.1.6) lib/action_dispatch/middleware/flash.rb:254:in `call'
2663
+ rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
2664
+ rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
2665
+ actionpack (4.1.6) lib/action_dispatch/middleware/cookies.rb:560:in `call'
2666
+ activerecord (4.1.6) lib/active_record/query_cache.rb:36:in `call'
2667
+ activerecord (4.1.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'
2668
+ activerecord (4.1.6) lib/active_record/migration.rb:380:in `call'
2669
+ actionpack (4.1.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
2670
+ activesupport (4.1.6) lib/active_support/callbacks.rb:82:in `run_callbacks'
2671
+ actionpack (4.1.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
2672
+ actionpack (4.1.6) lib/action_dispatch/middleware/reloader.rb:73:in `call'
2673
+ actionpack (4.1.6) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
2674
+ actionpack (4.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
2675
+ actionpack (4.1.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
2676
+ railties (4.1.6) lib/rails/rack/logger.rb:38:in `call_app'
2677
+ railties (4.1.6) lib/rails/rack/logger.rb:20:in `block in call'
2678
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `block in tagged'
2679
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:26:in `tagged'
2680
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `tagged'
2681
+ railties (4.1.6) lib/rails/rack/logger.rb:20:in `call'
2682
+ actionpack (4.1.6) lib/action_dispatch/middleware/request_id.rb:21:in `call'
2683
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
2684
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
2685
+ activesupport (4.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
2686
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
2687
+ actionpack (4.1.6) lib/action_dispatch/middleware/static.rb:64:in `call'
2688
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
2689
+ railties (4.1.6) lib/rails/engine.rb:514:in `call'
2690
+ railties (4.1.6) lib/rails/application.rb:144:in `call'
2691
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
2692
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
2693
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
2694
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
2695
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
2696
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
2697
+
2698
+
2699
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.4ms)
2700
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.4ms)
2701
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms)
2702
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (56.4ms)
2703
+
2704
+
2705
+ Started GET "/buy" for 127.0.0.1 at 2014-10-28 14:48:59 -0400
2706
+ Processing by BuyController#index as HTML
2707
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
2708
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_checkout.html.erb (2.9ms)
2709
+ Rendered buy/index.html.erb within layouts/application (4.5ms)
2710
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_stripe_header.html.erb (0.1ms)
2711
+ Completed 200 OK in 150ms (Views: 148.2ms | ActiveRecord: 0.3ms)
2712
+
2713
+
2714
+ Started GET "/assets/buy.css?body=1" for 127.0.0.1 at 2014-10-28 14:48:59 -0400
2715
+
2716
+
2717
+ Started GET "/assets/payola/checkout_button.js?body=1" for 127.0.0.1 at 2014-10-28 14:48:59 -0400
2718
+
2719
+
2720
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-28 14:48:59 -0400
2721
+
2722
+
2723
+ Started GET "/assets/buy.js?body=1" for 127.0.0.1 at 2014-10-28 14:48:59 -0400
2724
+
2725
+
2726
+ Started GET "/assets/payola/application.js?body=1" for 127.0.0.1 at 2014-10-28 14:48:59 -0400
2727
+
2728
+
2729
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-28 14:48:59 -0400
2730
+
2731
+
2732
+ Started GET "/assets/payola/form.js?body=1" for 127.0.0.1 at 2014-10-28 14:48:59 -0400
2733
+
2734
+
2735
+ Started GET "/assets/payola.js?body=1" for 127.0.0.1 at 2014-10-28 14:48:59 -0400
2736
+
2737
+
2738
+ Started GET "/buy" for 127.0.0.1 at 2014-10-28 14:49:12 -0400
2739
+ Processing by BuyController#index as HTML
2740
+ Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
2741
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_checkout.html.erb (2.6ms)
2742
+ Rendered buy/index.html.erb within layouts/application (3.9ms)
2743
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_stripe_header.html.erb (0.0ms)
2744
+ Completed 200 OK in 107ms (Views: 106.3ms | ActiveRecord: 0.2ms)
2745
+
2746
+
2747
+ Started GET "/assets/buy.css?body=1" for 127.0.0.1 at 2014-10-28 14:49:12 -0400
2748
+
2749
+
2750
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-28 14:49:12 -0400
2751
+
2752
+
2753
+ Started GET "/assets/payola/application.js?body=1" for 127.0.0.1 at 2014-10-28 14:49:12 -0400
2754
+
2755
+
2756
+ Started GET "/assets/buy.js?body=1" for 127.0.0.1 at 2014-10-28 14:49:12 -0400
2757
+
2758
+
2759
+ Started GET "/assets/payola.js?body=1" for 127.0.0.1 at 2014-10-28 14:49:12 -0400
2760
+
2761
+
2762
+ Started GET "/assets/payola/checkout_button.js?body=1" for 127.0.0.1 at 2014-10-28 14:49:12 -0400
2763
+
2764
+
2765
+ Started GET "/assets/payola/form.js?body=1" for 127.0.0.1 at 2014-10-28 14:49:12 -0400
2766
+
2767
+
2768
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-28 14:49:12 -0400
2769
+
2770
+
2771
+ Started POST "/subdir/payola/buy/product/foo" for 127.0.0.1 at 2014-10-28 14:49:14 -0400
2772
+ Processing by Payola::TransactionsController#create as HTML
2773
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"2IuIJThdxsedZZm+4RNkPb6BrXTjLdCWKYgcutw62cE=", "product_class"=>"product", "permalink"=>"foo"}
2774
+ Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."permalink" = 'foo' LIMIT 1
2775
+ Payola::Coupon Load (0.2ms) SELECT "payola_coupons".* FROM "payola_coupons" WHERE (lower(code) = lower(NULL)) ORDER BY "payola_coupons"."id" ASC LIMIT 1
2776
+ Payola::Affiliate Load (0.1ms) SELECT "payola_affiliates".* FROM "payola_affiliates" WHERE (lower(code) = lower(NULL)) ORDER BY "payola_affiliates"."id" ASC LIMIT 1
2777
+ Completed 500 Internal Server Error in 82ms
2778
+
2779
+ NoMethodError (undefined method `signed_custom_fields=' for #<Payola::Sale:0x007fc91c9dbf10>):
2780
+ activemodel (4.1.6) lib/active_model/attribute_methods.rb:435:in `method_missing'
2781
+ activerecord (4.1.6) lib/active_record/attribute_methods.rb:211:in `method_missing'
2782
+ /Users/peter/devel/payola/app/services/payola/create_sale.rb:14:in `block in call'
2783
+ activerecord (4.1.6) lib/active_record/core.rb:200:in `initialize'
2784
+ activerecord (4.1.6) lib/active_record/inheritance.rb:30:in `new'
2785
+ activerecord (4.1.6) lib/active_record/inheritance.rb:30:in `new'
2786
+ /Users/peter/devel/payola/app/services/payola/create_sale.rb:8:in `call'
2787
+ /Users/peter/devel/payola/app/controllers/payola/transactions_controller.rb:26:in `create'
2788
+ actionpack (4.1.6) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
2789
+ actionpack (4.1.6) lib/abstract_controller/base.rb:189:in `process_action'
2790
+ actionpack (4.1.6) lib/action_controller/metal/rendering.rb:10:in `process_action'
2791
+ actionpack (4.1.6) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
2792
+ activesupport (4.1.6) lib/active_support/callbacks.rb:113:in `call'
2793
+ activesupport (4.1.6) lib/active_support/callbacks.rb:113:in `call'
2794
+ activesupport (4.1.6) lib/active_support/callbacks.rb:149:in `block in halting_and_conditional'
2795
+ activesupport (4.1.6) lib/active_support/callbacks.rb:229:in `call'
2796
+ activesupport (4.1.6) lib/active_support/callbacks.rb:229:in `block in halting'
2797
+ activesupport (4.1.6) lib/active_support/callbacks.rb:166:in `call'
2798
+ activesupport (4.1.6) lib/active_support/callbacks.rb:166:in `block in halting'
2799
+ activesupport (4.1.6) lib/active_support/callbacks.rb:86:in `call'
2800
+ activesupport (4.1.6) lib/active_support/callbacks.rb:86:in `run_callbacks'
2801
+ actionpack (4.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action'
2802
+ actionpack (4.1.6) lib/action_controller/metal/rescue.rb:29:in `process_action'
2803
+ actionpack (4.1.6) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
2804
+ activesupport (4.1.6) lib/active_support/notifications.rb:159:in `block in instrument'
2805
+ activesupport (4.1.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
2806
+ activesupport (4.1.6) lib/active_support/notifications.rb:159:in `instrument'
2807
+ actionpack (4.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
2808
+ actionpack (4.1.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
2809
+ activerecord (4.1.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
2810
+ actionpack (4.1.6) lib/abstract_controller/base.rb:136:in `process'
2811
+ actionview (4.1.6) lib/action_view/rendering.rb:30:in `process'
2812
+ actionpack (4.1.6) lib/action_controller/metal.rb:196:in `dispatch'
2813
+ actionpack (4.1.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
2814
+ actionpack (4.1.6) lib/action_controller/metal.rb:232:in `block in action'
2815
+ actionpack (4.1.6) lib/action_dispatch/routing/route_set.rb:82:in `call'
2816
+ actionpack (4.1.6) lib/action_dispatch/routing/route_set.rb:82:in `dispatch'
2817
+ actionpack (4.1.6) lib/action_dispatch/routing/route_set.rb:50:in `call'
2818
+ actionpack (4.1.6) lib/action_dispatch/journey/router.rb:73:in `block in call'
2819
+ actionpack (4.1.6) lib/action_dispatch/journey/router.rb:59:in `each'
2820
+ actionpack (4.1.6) lib/action_dispatch/journey/router.rb:59:in `call'
2821
+ actionpack (4.1.6) lib/action_dispatch/routing/route_set.rb:678:in `call'
2822
+ railties (4.1.6) lib/rails/engine.rb:514:in `call'
2823
+ railties (4.1.6) lib/rails/railtie.rb:194:in `public_send'
2824
+ railties (4.1.6) lib/rails/railtie.rb:194:in `method_missing'
2825
+ actionpack (4.1.6) lib/action_dispatch/journey/router.rb:73:in `block in call'
2826
+ actionpack (4.1.6) lib/action_dispatch/journey/router.rb:59:in `each'
2827
+ actionpack (4.1.6) lib/action_dispatch/journey/router.rb:59:in `call'
2828
+ actionpack (4.1.6) lib/action_dispatch/routing/route_set.rb:678:in `call'
2829
+ rack (1.5.2) lib/rack/etag.rb:23:in `call'
2830
+ rack (1.5.2) lib/rack/conditionalget.rb:35:in `call'
2831
+ rack (1.5.2) lib/rack/head.rb:11:in `call'
2832
+ actionpack (4.1.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
2833
+ actionpack (4.1.6) lib/action_dispatch/middleware/flash.rb:254:in `call'
2834
+ rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
2835
+ rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
2836
+ actionpack (4.1.6) lib/action_dispatch/middleware/cookies.rb:560:in `call'
2837
+ activerecord (4.1.6) lib/active_record/query_cache.rb:36:in `call'
2838
+ activerecord (4.1.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'
2839
+ activerecord (4.1.6) lib/active_record/migration.rb:380:in `call'
2840
+ actionpack (4.1.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
2841
+ activesupport (4.1.6) lib/active_support/callbacks.rb:82:in `run_callbacks'
2842
+ actionpack (4.1.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
2843
+ actionpack (4.1.6) lib/action_dispatch/middleware/reloader.rb:73:in `call'
2844
+ actionpack (4.1.6) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
2845
+ actionpack (4.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
2846
+ actionpack (4.1.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
2847
+ railties (4.1.6) lib/rails/rack/logger.rb:38:in `call_app'
2848
+ railties (4.1.6) lib/rails/rack/logger.rb:20:in `block in call'
2849
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `block in tagged'
2850
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:26:in `tagged'
2851
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `tagged'
2852
+ railties (4.1.6) lib/rails/rack/logger.rb:20:in `call'
2853
+ actionpack (4.1.6) lib/action_dispatch/middleware/request_id.rb:21:in `call'
2854
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
2855
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
2856
+ activesupport (4.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
2857
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
2858
+ actionpack (4.1.6) lib/action_dispatch/middleware/static.rb:64:in `call'
2859
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
2860
+ railties (4.1.6) lib/rails/engine.rb:514:in `call'
2861
+ railties (4.1.6) lib/rails/application.rb:144:in `call'
2862
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
2863
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
2864
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
2865
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
2866
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
2867
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
2868
+
2869
+
2870
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.6ms)
2871
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.0ms)
2872
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms)
2873
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (45.6ms)
2874
+
2875
+
2876
+ Started POST "/subdir/payola/buy/product/foo" for 127.0.0.1 at 2014-10-28 14:49:22 -0400
2877
+ Processing by Payola::TransactionsController#create as HTML
2878
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"2IuIJThdxsedZZm+4RNkPb6BrXTjLdCWKYgcutw62cE=", "product_class"=>"product", "permalink"=>"foo"}
2879
+ Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."permalink" = 'foo' LIMIT 1
2880
+ Payola::Coupon Load (0.1ms) SELECT "payola_coupons".* FROM "payola_coupons" WHERE (lower(code) = lower(NULL)) ORDER BY "payola_coupons"."id" ASC LIMIT 1
2881
+ Payola::Affiliate Load (0.2ms) SELECT "payola_affiliates".* FROM "payola_affiliates" WHERE (lower(code) = lower(NULL)) ORDER BY "payola_affiliates"."id" ASC LIMIT 1
2882
+ Completed 500 Internal Server Error in 106ms
2883
+
2884
+ NoMethodError (undefined method `signed_custom_fields=' for #<Payola::Sale:0x007fc91c966d00>):
2885
+ activemodel (4.1.6) lib/active_model/attribute_methods.rb:435:in `method_missing'
2886
+ activerecord (4.1.6) lib/active_record/attribute_methods.rb:211:in `method_missing'
2887
+ /Users/peter/devel/payola/app/services/payola/create_sale.rb:14:in `block in call'
2888
+ activerecord (4.1.6) lib/active_record/core.rb:200:in `initialize'
2889
+ activerecord (4.1.6) lib/active_record/inheritance.rb:30:in `new'
2890
+ activerecord (4.1.6) lib/active_record/inheritance.rb:30:in `new'
2891
+ /Users/peter/devel/payola/app/services/payola/create_sale.rb:8:in `call'
2892
+ /Users/peter/devel/payola/app/controllers/payola/transactions_controller.rb:26:in `create'
2893
+ actionpack (4.1.6) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
2894
+ actionpack (4.1.6) lib/abstract_controller/base.rb:189:in `process_action'
2895
+ actionpack (4.1.6) lib/action_controller/metal/rendering.rb:10:in `process_action'
2896
+ actionpack (4.1.6) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
2897
+ activesupport (4.1.6) lib/active_support/callbacks.rb:113:in `call'
2898
+ activesupport (4.1.6) lib/active_support/callbacks.rb:113:in `call'
2899
+ activesupport (4.1.6) lib/active_support/callbacks.rb:149:in `block in halting_and_conditional'
2900
+ activesupport (4.1.6) lib/active_support/callbacks.rb:229:in `call'
2901
+ activesupport (4.1.6) lib/active_support/callbacks.rb:229:in `block in halting'
2902
+ activesupport (4.1.6) lib/active_support/callbacks.rb:166:in `call'
2903
+ activesupport (4.1.6) lib/active_support/callbacks.rb:166:in `block in halting'
2904
+ activesupport (4.1.6) lib/active_support/callbacks.rb:86:in `call'
2905
+ activesupport (4.1.6) lib/active_support/callbacks.rb:86:in `run_callbacks'
2906
+ actionpack (4.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action'
2907
+ actionpack (4.1.6) lib/action_controller/metal/rescue.rb:29:in `process_action'
2908
+ actionpack (4.1.6) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
2909
+ activesupport (4.1.6) lib/active_support/notifications.rb:159:in `block in instrument'
2910
+ activesupport (4.1.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
2911
+ activesupport (4.1.6) lib/active_support/notifications.rb:159:in `instrument'
2912
+ actionpack (4.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
2913
+ actionpack (4.1.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
2914
+ activerecord (4.1.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
2915
+ actionpack (4.1.6) lib/abstract_controller/base.rb:136:in `process'
2916
+ actionview (4.1.6) lib/action_view/rendering.rb:30:in `process'
2917
+ actionpack (4.1.6) lib/action_controller/metal.rb:196:in `dispatch'
2918
+ actionpack (4.1.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
2919
+ actionpack (4.1.6) lib/action_controller/metal.rb:232:in `block in action'
2920
+ actionpack (4.1.6) lib/action_dispatch/routing/route_set.rb:82:in `call'
2921
+ actionpack (4.1.6) lib/action_dispatch/routing/route_set.rb:82:in `dispatch'
2922
+ actionpack (4.1.6) lib/action_dispatch/routing/route_set.rb:50:in `call'
2923
+ actionpack (4.1.6) lib/action_dispatch/journey/router.rb:73:in `block in call'
2924
+ actionpack (4.1.6) lib/action_dispatch/journey/router.rb:59:in `each'
2925
+ actionpack (4.1.6) lib/action_dispatch/journey/router.rb:59:in `call'
2926
+ actionpack (4.1.6) lib/action_dispatch/routing/route_set.rb:678:in `call'
2927
+ railties (4.1.6) lib/rails/engine.rb:514:in `call'
2928
+ railties (4.1.6) lib/rails/railtie.rb:194:in `public_send'
2929
+ railties (4.1.6) lib/rails/railtie.rb:194:in `method_missing'
2930
+ actionpack (4.1.6) lib/action_dispatch/journey/router.rb:73:in `block in call'
2931
+ actionpack (4.1.6) lib/action_dispatch/journey/router.rb:59:in `each'
2932
+ actionpack (4.1.6) lib/action_dispatch/journey/router.rb:59:in `call'
2933
+ actionpack (4.1.6) lib/action_dispatch/routing/route_set.rb:678:in `call'
2934
+ rack (1.5.2) lib/rack/etag.rb:23:in `call'
2935
+ rack (1.5.2) lib/rack/conditionalget.rb:35:in `call'
2936
+ rack (1.5.2) lib/rack/head.rb:11:in `call'
2937
+ actionpack (4.1.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
2938
+ actionpack (4.1.6) lib/action_dispatch/middleware/flash.rb:254:in `call'
2939
+ rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
2940
+ rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
2941
+ actionpack (4.1.6) lib/action_dispatch/middleware/cookies.rb:560:in `call'
2942
+ activerecord (4.1.6) lib/active_record/query_cache.rb:36:in `call'
2943
+ activerecord (4.1.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'
2944
+ activerecord (4.1.6) lib/active_record/migration.rb:380:in `call'
2945
+ actionpack (4.1.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
2946
+ activesupport (4.1.6) lib/active_support/callbacks.rb:82:in `run_callbacks'
2947
+ actionpack (4.1.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
2948
+ actionpack (4.1.6) lib/action_dispatch/middleware/reloader.rb:73:in `call'
2949
+ actionpack (4.1.6) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
2950
+ actionpack (4.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
2951
+ actionpack (4.1.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
2952
+ railties (4.1.6) lib/rails/rack/logger.rb:38:in `call_app'
2953
+ railties (4.1.6) lib/rails/rack/logger.rb:20:in `block in call'
2954
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `block in tagged'
2955
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:26:in `tagged'
2956
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `tagged'
2957
+ railties (4.1.6) lib/rails/rack/logger.rb:20:in `call'
2958
+ actionpack (4.1.6) lib/action_dispatch/middleware/request_id.rb:21:in `call'
2959
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
2960
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
2961
+ activesupport (4.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
2962
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
2963
+ actionpack (4.1.6) lib/action_dispatch/middleware/static.rb:64:in `call'
2964
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
2965
+ railties (4.1.6) lib/rails/engine.rb:514:in `call'
2966
+ railties (4.1.6) lib/rails/application.rb:144:in `call'
2967
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
2968
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
2969
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
2970
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
2971
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
2972
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
2973
+
2974
+
2975
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.5ms)
2976
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.0ms)
2977
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms)
2978
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (46.2ms)
2979
+
2980
+
2981
+ Started GET "/buy" for 127.0.0.1 at 2014-10-28 14:49:32 -0400
2982
+ Processing by BuyController#index as HTML
2983
+ Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
2984
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_checkout.html.erb (6.4ms)
2985
+ Rendered buy/index.html.erb within layouts/application (7.7ms)
2986
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_stripe_header.html.erb (0.1ms)
2987
+ Completed 200 OK in 167ms (Views: 165.2ms | ActiveRecord: 0.2ms)
2988
+
2989
+
2990
+ Started GET "/assets/buy.css?body=1" for 127.0.0.1 at 2014-10-28 14:49:33 -0400
2991
+
2992
+
2993
+ Started GET "/assets/payola/form.js?body=1" for 127.0.0.1 at 2014-10-28 14:49:33 -0400
2994
+
2995
+
2996
+ Started GET "/assets/buy.js?body=1" for 127.0.0.1 at 2014-10-28 14:49:33 -0400
2997
+
2998
+
2999
+ Started GET "/assets/payola/checkout_button.js?body=1" for 127.0.0.1 at 2014-10-28 14:49:33 -0400
3000
+
3001
+
3002
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-28 14:49:33 -0400
3003
+
3004
+
3005
+ Started GET "/assets/payola/application.js?body=1" for 127.0.0.1 at 2014-10-28 14:49:33 -0400
3006
+
3007
+
3008
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-28 14:49:33 -0400
3009
+
3010
+
3011
+ Started GET "/assets/payola.js?body=1" for 127.0.0.1 at 2014-10-28 14:49:33 -0400
3012
+
3013
+
3014
+ Started GET "/buy" for 127.0.0.1 at 2014-10-28 14:50:17 -0400
3015
+ Processing by BuyController#index as HTML
3016
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
3017
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_checkout.html.erb (3.2ms)
3018
+ Rendered buy/index.html.erb within layouts/application (4.8ms)
3019
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_stripe_header.html.erb (0.0ms)
3020
+ Completed 200 OK in 104ms (Views: 102.2ms | ActiveRecord: 0.3ms)
3021
+
3022
+
3023
+ Started GET "/buy" for 127.0.0.1 at 2014-10-28 14:50:20 -0400
3024
+ Processing by BuyController#index as HTML
3025
+ Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
3026
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_checkout.html.erb (1.8ms)
3027
+ Rendered buy/index.html.erb within layouts/application (3.0ms)
3028
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_stripe_header.html.erb (0.0ms)
3029
+ Completed 200 OK in 133ms (Views: 132.5ms | ActiveRecord: 0.2ms)
3030
+
3031
+
3032
+ Started GET "/assets/buy.css?body=1" for 127.0.0.1 at 2014-10-28 14:50:20 -0400
3033
+
3034
+
3035
+ Started GET "/assets/payola/application.js?body=1" for 127.0.0.1 at 2014-10-28 14:50:20 -0400
3036
+
3037
+
3038
+ Started GET "/assets/payola/checkout_button.js?body=1" for 127.0.0.1 at 2014-10-28 14:50:20 -0400
3039
+
3040
+
3041
+ Started GET "/assets/buy.js?body=1" for 127.0.0.1 at 2014-10-28 14:50:21 -0400
3042
+
3043
+
3044
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-28 14:50:21 -0400
3045
+
3046
+
3047
+ Started GET "/assets/payola/form.js?body=1" for 127.0.0.1 at 2014-10-28 14:50:21 -0400
3048
+
3049
+
3050
+ Started GET "/assets/payola.js?body=1" for 127.0.0.1 at 2014-10-28 14:50:21 -0400
3051
+
3052
+
3053
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-28 14:50:21 -0400
3054
+
3055
+
3056
+ Started GET "/buy" for 127.0.0.1 at 2014-10-28 14:51:46 -0400
3057
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3058
+ Processing by BuyController#index as HTML
3059
+ Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
3060
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_checkout.html.erb (106.9ms)
3061
+ Rendered buy/index.html.erb within layouts/application (113.6ms)
3062
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_stripe_header.html.erb (0.4ms)
3063
+ Completed 200 OK in 249ms (Views: 202.6ms | ActiveRecord: 1.1ms)
3064
+
3065
+
3066
+ Started GET "/assets/buy.css?body=1" for 127.0.0.1 at 2014-10-28 14:51:47 -0400
3067
+
3068
+
3069
+ Started GET "/assets/payola/application.js?body=1" for 127.0.0.1 at 2014-10-28 14:51:47 -0400
3070
+
3071
+
3072
+ Started GET "/assets/payola/form.js?body=1" for 127.0.0.1 at 2014-10-28 14:51:47 -0400
3073
+
3074
+
3075
+ Started GET "/assets/buy.js?body=1" for 127.0.0.1 at 2014-10-28 14:51:47 -0400
3076
+
3077
+
3078
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-28 14:51:47 -0400
3079
+
3080
+
3081
+ Started GET "/assets/payola.js?body=1" for 127.0.0.1 at 2014-10-28 14:51:47 -0400
3082
+
3083
+
3084
+ Started GET "/assets/payola/checkout_button.js?body=1" for 127.0.0.1 at 2014-10-28 14:51:47 -0400
3085
+
3086
+
3087
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-28 14:51:47 -0400
3088
+
3089
+
3090
+ Started POST "/subdir/payola/buy/product/foo" for 127.0.0.1 at 2014-10-28 14:52:04 -0400
3091
+ Processing by Payola::TransactionsController#create as */*
3092
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"2IuIJThdxsedZZm+4RNkPb6BrXTjLdCWKYgcutw62cE=", "stripeToken"=>"tok_52kZBVNHVMDeDL", "stripeEmail"=>"test@example.com", "product_class"=>"product", "permalink"=>"foo"}
3093
+ Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."permalink" = 'foo' LIMIT 1
3094
+ Payola::Coupon Load (0.1ms) SELECT "payola_coupons".* FROM "payola_coupons" WHERE (lower(code) = lower(NULL)) ORDER BY "payola_coupons"."id" ASC LIMIT 1
3095
+ Payola::Affiliate Load (0.4ms) SELECT "payola_affiliates".* FROM "payola_affiliates" WHERE (lower(code) = lower(NULL)) ORDER BY "payola_affiliates"."id" ASC LIMIT 1
3096
+ Completed 500 Internal Server Error in 141ms
3097
+
3098
+ NoMethodError (undefined method `signed_custom_fields=' for #<Payola::Sale:0x007fe08f7e4358>):
3099
+ activemodel (4.1.6) lib/active_model/attribute_methods.rb:435:in `method_missing'
3100
+ activerecord (4.1.6) lib/active_record/attribute_methods.rb:211:in `method_missing'
3101
+ /Users/peter/devel/payola/app/services/payola/create_sale.rb:14:in `block in call'
3102
+ activerecord (4.1.6) lib/active_record/core.rb:200:in `initialize'
3103
+ activerecord (4.1.6) lib/active_record/inheritance.rb:30:in `new'
3104
+ activerecord (4.1.6) lib/active_record/inheritance.rb:30:in `new'
3105
+ /Users/peter/devel/payola/app/services/payola/create_sale.rb:8:in `call'
3106
+ /Users/peter/devel/payola/app/controllers/payola/transactions_controller.rb:26:in `create'
3107
+ actionpack (4.1.6) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
3108
+ actionpack (4.1.6) lib/abstract_controller/base.rb:189:in `process_action'
3109
+ actionpack (4.1.6) lib/action_controller/metal/rendering.rb:10:in `process_action'
3110
+ actionpack (4.1.6) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
3111
+ activesupport (4.1.6) lib/active_support/callbacks.rb:113:in `call'
3112
+ activesupport (4.1.6) lib/active_support/callbacks.rb:113:in `call'
3113
+ activesupport (4.1.6) lib/active_support/callbacks.rb:149:in `block in halting_and_conditional'
3114
+ activesupport (4.1.6) lib/active_support/callbacks.rb:229:in `call'
3115
+ activesupport (4.1.6) lib/active_support/callbacks.rb:229:in `block in halting'
3116
+ activesupport (4.1.6) lib/active_support/callbacks.rb:166:in `call'
3117
+ activesupport (4.1.6) lib/active_support/callbacks.rb:166:in `block in halting'
3118
+ activesupport (4.1.6) lib/active_support/callbacks.rb:86:in `call'
3119
+ activesupport (4.1.6) lib/active_support/callbacks.rb:86:in `run_callbacks'
3120
+ actionpack (4.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action'
3121
+ actionpack (4.1.6) lib/action_controller/metal/rescue.rb:29:in `process_action'
3122
+ actionpack (4.1.6) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
3123
+ activesupport (4.1.6) lib/active_support/notifications.rb:159:in `block in instrument'
3124
+ activesupport (4.1.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
3125
+ activesupport (4.1.6) lib/active_support/notifications.rb:159:in `instrument'
3126
+ actionpack (4.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
3127
+ actionpack (4.1.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
3128
+ activerecord (4.1.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
3129
+ actionpack (4.1.6) lib/abstract_controller/base.rb:136:in `process'
3130
+ actionview (4.1.6) lib/action_view/rendering.rb:30:in `process'
3131
+ actionpack (4.1.6) lib/action_controller/metal.rb:196:in `dispatch'
3132
+ actionpack (4.1.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
3133
+ actionpack (4.1.6) lib/action_controller/metal.rb:232:in `block in action'
3134
+ actionpack (4.1.6) lib/action_dispatch/routing/route_set.rb:82:in `call'
3135
+ actionpack (4.1.6) lib/action_dispatch/routing/route_set.rb:82:in `dispatch'
3136
+ actionpack (4.1.6) lib/action_dispatch/routing/route_set.rb:50:in `call'
3137
+ actionpack (4.1.6) lib/action_dispatch/journey/router.rb:73:in `block in call'
3138
+ actionpack (4.1.6) lib/action_dispatch/journey/router.rb:59:in `each'
3139
+ actionpack (4.1.6) lib/action_dispatch/journey/router.rb:59:in `call'
3140
+ actionpack (4.1.6) lib/action_dispatch/routing/route_set.rb:678:in `call'
3141
+ railties (4.1.6) lib/rails/engine.rb:514:in `call'
3142
+ railties (4.1.6) lib/rails/railtie.rb:194:in `public_send'
3143
+ railties (4.1.6) lib/rails/railtie.rb:194:in `method_missing'
3144
+ actionpack (4.1.6) lib/action_dispatch/journey/router.rb:73:in `block in call'
3145
+ actionpack (4.1.6) lib/action_dispatch/journey/router.rb:59:in `each'
3146
+ actionpack (4.1.6) lib/action_dispatch/journey/router.rb:59:in `call'
3147
+ actionpack (4.1.6) lib/action_dispatch/routing/route_set.rb:678:in `call'
3148
+ rack (1.5.2) lib/rack/etag.rb:23:in `call'
3149
+ rack (1.5.2) lib/rack/conditionalget.rb:35:in `call'
3150
+ rack (1.5.2) lib/rack/head.rb:11:in `call'
3151
+ actionpack (4.1.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
3152
+ actionpack (4.1.6) lib/action_dispatch/middleware/flash.rb:254:in `call'
3153
+ rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
3154
+ rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
3155
+ actionpack (4.1.6) lib/action_dispatch/middleware/cookies.rb:560:in `call'
3156
+ activerecord (4.1.6) lib/active_record/query_cache.rb:36:in `call'
3157
+ activerecord (4.1.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'
3158
+ activerecord (4.1.6) lib/active_record/migration.rb:380:in `call'
3159
+ actionpack (4.1.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
3160
+ activesupport (4.1.6) lib/active_support/callbacks.rb:82:in `run_callbacks'
3161
+ actionpack (4.1.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
3162
+ actionpack (4.1.6) lib/action_dispatch/middleware/reloader.rb:73:in `call'
3163
+ actionpack (4.1.6) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
3164
+ actionpack (4.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
3165
+ actionpack (4.1.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
3166
+ railties (4.1.6) lib/rails/rack/logger.rb:38:in `call_app'
3167
+ railties (4.1.6) lib/rails/rack/logger.rb:20:in `block in call'
3168
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `block in tagged'
3169
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:26:in `tagged'
3170
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `tagged'
3171
+ railties (4.1.6) lib/rails/rack/logger.rb:20:in `call'
3172
+ actionpack (4.1.6) lib/action_dispatch/middleware/request_id.rb:21:in `call'
3173
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
3174
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
3175
+ activesupport (4.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
3176
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
3177
+ actionpack (4.1.6) lib/action_dispatch/middleware/static.rb:64:in `call'
3178
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
3179
+ railties (4.1.6) lib/rails/engine.rb:514:in `call'
3180
+ railties (4.1.6) lib/rails/application.rb:144:in `call'
3181
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
3182
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
3183
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
3184
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
3185
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
3186
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
3187
+
3188
+
3189
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.4ms)
3190
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_trace.text.erb (0.5ms)
3191
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.text.erb (0.6ms)
3192
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb (49.5ms)
3193
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3194
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3195
+  (0.2ms)  SELECT sql
3196
+ FROM sqlite_master
3197
+ WHERE name='index_payola_sales_on_stripe_customer_id' AND type='index'
3198
+ UNION ALL
3199
+ SELECT sql
3200
+ FROM sqlite_temp_master
3201
+ WHERE name='index_payola_sales_on_stripe_customer_id' AND type='index'
3202
+ 
3203
+  (0.1ms) SELECT sql
3204
+ FROM sqlite_master
3205
+ WHERE name='index_payola_sales_on_product' AND type='index'
3206
+ UNION ALL
3207
+ SELECT sql
3208
+ FROM sqlite_temp_master
3209
+ WHERE name='index_payola_sales_on_product' AND type='index'
3210
+
3211
+  (0.1ms)  SELECT sql
3212
+ FROM sqlite_master
3213
+ WHERE name='index_payola_sales_on_guid' AND type='index'
3214
+ UNION ALL
3215
+ SELECT sql
3216
+ FROM sqlite_temp_master
3217
+ WHERE name='index_payola_sales_on_guid' AND type='index'
3218
+ 
3219
+  (0.1ms) SELECT sql
3220
+ FROM sqlite_master
3221
+ WHERE name='index_payola_sales_on_email' AND type='index'
3222
+ UNION ALL
3223
+ SELECT sql
3224
+ FROM sqlite_temp_master
3225
+ WHERE name='index_payola_sales_on_email' AND type='index'
3226
+
3227
+  (0.1ms)  SELECT sql
3228
+ FROM sqlite_master
3229
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
3230
+ UNION ALL
3231
+ SELECT sql
3232
+ FROM sqlite_temp_master
3233
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
3234
+ 
3235
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3236
+ Migrating to AddCustomFieldsToPayolaSale (20141026101628)
3237
+  (0.2ms) begin transaction
3238
+  (0.7ms) ALTER TABLE "payola_sales" ADD "custom_fields" text
3239
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141026101628"]]
3240
+  (2.9ms) commit transaction
3241
+ Migrating to RenameCustomFieldsToSignedCustomFieldsOnPayolaSale (20141026144800)
3242
+  (0.1ms) begin transaction
3243
+  (1.0ms) CREATE TEMPORARY TABLE "apayola_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) 
3244
+  (0.1ms) SELECT sql
3245
+ FROM sqlite_master
3246
+ WHERE name='index_payola_sales_on_stripe_customer_id' AND type='index'
3247
+ UNION ALL
3248
+ SELECT sql
3249
+ FROM sqlite_temp_master
3250
+ WHERE name='index_payola_sales_on_stripe_customer_id' AND type='index'
3251
+
3252
+  (0.1ms)  SELECT sql
3253
+ FROM sqlite_master
3254
+ WHERE name='index_payola_sales_on_product' AND type='index'
3255
+ UNION ALL
3256
+ SELECT sql
3257
+ FROM sqlite_temp_master
3258
+ WHERE name='index_payola_sales_on_product' AND type='index'
3259
+ 
3260
+  (0.1ms) SELECT sql
3261
+ FROM sqlite_master
3262
+ WHERE name='index_payola_sales_on_guid' AND type='index'
3263
+ UNION ALL
3264
+ SELECT sql
3265
+ FROM sqlite_temp_master
3266
+ WHERE name='index_payola_sales_on_guid' AND type='index'
3267
+
3268
+  (0.1ms)  SELECT sql
3269
+ FROM sqlite_master
3270
+ WHERE name='index_payola_sales_on_email' AND type='index'
3271
+ UNION ALL
3272
+ SELECT sql
3273
+ FROM sqlite_temp_master
3274
+ WHERE name='index_payola_sales_on_email' AND type='index'
3275
+ 
3276
+  (0.1ms) SELECT sql
3277
+ FROM sqlite_master
3278
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
3279
+ UNION ALL
3280
+ SELECT sql
3281
+ FROM sqlite_temp_master
3282
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
3283
+
3284
+  (0.0ms) select sqlite_version(*)
3285
+  (0.1ms) CREATE INDEX "tindex_apayola_sales_on_stripe_customer_id" ON "apayola_sales" ("stripe_customer_id")
3286
+  (0.1ms)  SELECT sql
3287
+ FROM sqlite_master
3288
+ WHERE name='tindex_apayola_sales_on_stripe_customer_id' AND type='index'
3289
+ UNION ALL
3290
+ SELECT sql
3291
+ FROM sqlite_temp_master
3292
+ WHERE name='tindex_apayola_sales_on_stripe_customer_id' AND type='index'
3293
+ 
3294
+  (0.1ms) CREATE INDEX "tindex_apayola_sales_on_product" ON "apayola_sales" ("product_id", "product_type")
3295
+  (0.1ms)  SELECT sql
3296
+ FROM sqlite_master
3297
+ WHERE name='tindex_apayola_sales_on_product' AND type='index'
3298
+ UNION ALL
3299
+ SELECT sql
3300
+ FROM sqlite_temp_master
3301
+ WHERE name='tindex_apayola_sales_on_product' AND type='index'
3302
+ 
3303
+  (0.1ms) SELECT sql
3304
+ FROM sqlite_master
3305
+ WHERE name='tindex_apayola_sales_on_stripe_customer_id' AND type='index'
3306
+ UNION ALL
3307
+ SELECT sql
3308
+ FROM sqlite_temp_master
3309
+ WHERE name='tindex_apayola_sales_on_stripe_customer_id' AND type='index'
3310
+
3311
+  (0.1ms) CREATE INDEX "tindex_apayola_sales_on_guid" ON "apayola_sales" ("guid")
3312
+  (0.1ms) SELECT sql
3313
+ FROM sqlite_master
3314
+ WHERE name='tindex_apayola_sales_on_guid' AND type='index'
3315
+ UNION ALL
3316
+ SELECT sql
3317
+ FROM sqlite_temp_master
3318
+ WHERE name='tindex_apayola_sales_on_guid' AND type='index'
3319
+
3320
+  (0.1ms)  SELECT sql
3321
+ FROM sqlite_master
3322
+ WHERE name='tindex_apayola_sales_on_product' AND type='index'
3323
+ UNION ALL
3324
+ SELECT sql
3325
+ FROM sqlite_temp_master
3326
+ WHERE name='tindex_apayola_sales_on_product' AND type='index'
3327
+ 
3328
+  (0.1ms) SELECT sql
3329
+ FROM sqlite_master
3330
+ WHERE name='tindex_apayola_sales_on_stripe_customer_id' AND type='index'
3331
+ UNION ALL
3332
+ SELECT sql
3333
+ FROM sqlite_temp_master
3334
+ WHERE name='tindex_apayola_sales_on_stripe_customer_id' AND type='index'
3335
+
3336
+  (0.1ms) CREATE INDEX "tindex_apayola_sales_on_email" ON "apayola_sales" ("email")
3337
+  (0.1ms) SELECT sql
3338
+ FROM sqlite_master
3339
+ WHERE name='tindex_apayola_sales_on_email' AND type='index'
3340
+ UNION ALL
3341
+ SELECT sql
3342
+ FROM sqlite_temp_master
3343
+ WHERE name='tindex_apayola_sales_on_email' AND type='index'
3344
+
3345
+  (0.1ms)  SELECT sql
3346
+ FROM sqlite_master
3347
+ WHERE name='tindex_apayola_sales_on_guid' AND type='index'
3348
+ UNION ALL
3349
+ SELECT sql
3350
+ FROM sqlite_temp_master
3351
+ WHERE name='tindex_apayola_sales_on_guid' AND type='index'
3352
+ 
3353
+  (0.1ms) SELECT sql
3354
+ FROM sqlite_master
3355
+ WHERE name='tindex_apayola_sales_on_product' AND type='index'
3356
+ UNION ALL
3357
+ SELECT sql
3358
+ FROM sqlite_temp_master
3359
+ WHERE name='tindex_apayola_sales_on_product' AND type='index'
3360
+
3361
+  (0.1ms)  SELECT sql
3362
+ FROM sqlite_master
3363
+ WHERE name='tindex_apayola_sales_on_stripe_customer_id' AND type='index'
3364
+ UNION ALL
3365
+ SELECT sql
3366
+ FROM sqlite_temp_master
3367
+ WHERE name='tindex_apayola_sales_on_stripe_customer_id' AND type='index'
3368
+ 
3369
+  (0.1ms) CREATE INDEX "tindex_apayola_sales_on_coupon_id" ON "apayola_sales" ("coupon_id")
3370
+  (0.3ms) SELECT * FROM "payola_sales"
3371
+  (0.2ms) INSERT INTO "apayola_sales" ("id","email","guid","product_id","product_type","created_at","updated_at","state","stripe_id","stripe_token","card_last4","card_expiration","card_type","error","amount","fee_amount","coupon_id","opt_in","download_count","affiliate_id","customer_address","business_address","stripe_customer_id","currency","signed_custom_fields") VALUES (1, 'pete@bugsplat.info', '1v2hth', 1, 'Product', '2014-10-24 20:50:28.064239', '2014-10-24 20:50:30.964672', 'finished', 'ch_14rF0zDpyMZVJxV9h51YbGRx', 'tok_14rF0xDpyMZVJxV9zgP97t6C', '4242', '2034-12-01', 'Visa', NULL, 100, 33, NULL, NULL, NULL, NULL, NULL, NULL, 'cus_51HaSWCD64X7ii', 'usd', NULL)
3372
+  (0.1ms) INSERT INTO "apayola_sales" ("id","email","guid","product_id","product_type","created_at","updated_at","state","stripe_id","stripe_token","card_last4","card_expiration","card_type","error","amount","fee_amount","coupon_id","opt_in","download_count","affiliate_id","customer_address","business_address","stripe_customer_id","currency","signed_custom_fields") VALUES (2, 'pete@bugsplat.info', 'c6jbbp', 1, 'Product', '2014-10-24 20:51:08.133946', '2014-10-24 20:51:10.511057', 'finished', 'ch_14rF1dDpyMZVJxV9CmaAzs8b', 'tok_14rF1bDpyMZVJxV9C5GT9wMk', '4242', '2034-12-01', 'Visa', NULL, 100, 33, NULL, NULL, NULL, NULL, NULL, NULL, 'cus_51Haa02oV95sKB', 'usd', NULL)
3373
+  (0.1ms) INSERT INTO "apayola_sales" ("id","email","guid","product_id","product_type","created_at","updated_at","state","stripe_id","stripe_token","card_last4","card_expiration","card_type","error","amount","fee_amount","coupon_id","opt_in","download_count","affiliate_id","customer_address","business_address","stripe_customer_id","currency","signed_custom_fields") VALUES (3, 'pete@bugsplat.info', 'fmd7nk', 1, 'Product', '2014-10-24 20:53:42.156020', '2014-10-24 20:53:44.712072', 'finished', 'ch_14rF47DpyMZVJxV911dIpIYX', 'tok_14rF45DpyMZVJxV9aT7V54TK', '4242', '2034-12-01', 'Visa', NULL, 100, 33, NULL, NULL, NULL, NULL, NULL, NULL, 'cus_51HdNSPn0zJj4Q', 'usd', NULL)
3374
+  (1.9ms) DROP TABLE "payola_sales"
3375
+  (0.2ms) 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)
3376
+  (0.1ms)  SELECT sql
3377
+ FROM sqlite_master
3378
+ WHERE name='tindex_apayola_sales_on_coupon_id' AND type='index'
3379
+ UNION ALL
3380
+ SELECT sql
3381
+ FROM sqlite_temp_master
3382
+ WHERE name='tindex_apayola_sales_on_coupon_id' AND type='index'
3383
+ 
3384
+  (0.1ms) SELECT sql
3385
+ FROM sqlite_master
3386
+ WHERE name='tindex_apayola_sales_on_email' AND type='index'
3387
+ UNION ALL
3388
+ SELECT sql
3389
+ FROM sqlite_temp_master
3390
+ WHERE name='tindex_apayola_sales_on_email' AND type='index'
3391
+
3392
+  (0.1ms)  SELECT sql
3393
+ FROM sqlite_master
3394
+ WHERE name='tindex_apayola_sales_on_guid' AND type='index'
3395
+ UNION ALL
3396
+ SELECT sql
3397
+ FROM sqlite_temp_master
3398
+ WHERE name='tindex_apayola_sales_on_guid' AND type='index'
3399
+ 
3400
+  (0.1ms) SELECT sql
3401
+ FROM sqlite_master
3402
+ WHERE name='tindex_apayola_sales_on_product' AND type='index'
3403
+ UNION ALL
3404
+ SELECT sql
3405
+ FROM sqlite_temp_master
3406
+ WHERE name='tindex_apayola_sales_on_product' AND type='index'
3407
+
3408
+  (0.1ms)  SELECT sql
3409
+ FROM sqlite_master
3410
+ WHERE name='tindex_apayola_sales_on_stripe_customer_id' AND type='index'
3411
+ UNION ALL
3412
+ SELECT sql
3413
+ FROM sqlite_temp_master
3414
+ WHERE name='tindex_apayola_sales_on_stripe_customer_id' AND type='index'
3415
+ 
3416
+  (0.1ms) CREATE INDEX "index_payola_sales_on_coupon_id" ON "payola_sales" ("coupon_id")
3417
+  (0.1ms)  SELECT sql
3418
+ FROM sqlite_master
3419
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
3420
+ UNION ALL
3421
+ SELECT sql
3422
+ FROM sqlite_temp_master
3423
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
3424
+ 
3425
+  (0.1ms) CREATE INDEX "index_payola_sales_on_email" ON "payola_sales" ("email")
3426
+  (0.1ms)  SELECT sql
3427
+ FROM sqlite_master
3428
+ WHERE name='index_payola_sales_on_email' AND type='index'
3429
+ UNION ALL
3430
+ SELECT sql
3431
+ FROM sqlite_temp_master
3432
+ WHERE name='index_payola_sales_on_email' AND type='index'
3433
+ 
3434
+  (0.1ms) SELECT sql
3435
+ FROM sqlite_master
3436
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
3437
+ UNION ALL
3438
+ SELECT sql
3439
+ FROM sqlite_temp_master
3440
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
3441
+
3442
+  (0.1ms) CREATE INDEX "index_payola_sales_on_guid" ON "payola_sales" ("guid")
3443
+  (0.1ms) SELECT sql
3444
+ FROM sqlite_master
3445
+ WHERE name='index_payola_sales_on_guid' AND type='index'
3446
+ UNION ALL
3447
+ SELECT sql
3448
+ FROM sqlite_temp_master
3449
+ WHERE name='index_payola_sales_on_guid' AND type='index'
3450
+
3451
+  (0.1ms)  SELECT sql
3452
+ FROM sqlite_master
3453
+ WHERE name='index_payola_sales_on_email' AND type='index'
3454
+ UNION ALL
3455
+ SELECT sql
3456
+ FROM sqlite_temp_master
3457
+ WHERE name='index_payola_sales_on_email' AND type='index'
3458
+ 
3459
+  (0.1ms) SELECT sql
3460
+ FROM sqlite_master
3461
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
3462
+ UNION ALL
3463
+ SELECT sql
3464
+ FROM sqlite_temp_master
3465
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
3466
+
3467
+  (0.1ms) CREATE INDEX "index_payola_sales_on_product" ON "payola_sales" ("product_id", "product_type")
3468
+  (0.1ms) SELECT sql
3469
+ FROM sqlite_master
3470
+ WHERE name='index_payola_sales_on_product' AND type='index'
3471
+ UNION ALL
3472
+ SELECT sql
3473
+ FROM sqlite_temp_master
3474
+ WHERE name='index_payola_sales_on_product' AND type='index'
3475
+
3476
+  (0.1ms)  SELECT sql
3477
+ FROM sqlite_master
3478
+ WHERE name='index_payola_sales_on_guid' AND type='index'
3479
+ UNION ALL
3480
+ SELECT sql
3481
+ FROM sqlite_temp_master
3482
+ WHERE name='index_payola_sales_on_guid' AND type='index'
3483
+ 
3484
+  (0.1ms) SELECT sql
3485
+ FROM sqlite_master
3486
+ WHERE name='index_payola_sales_on_email' AND type='index'
3487
+ UNION ALL
3488
+ SELECT sql
3489
+ FROM sqlite_temp_master
3490
+ WHERE name='index_payola_sales_on_email' AND type='index'
3491
+
3492
+  (0.1ms)  SELECT sql
3493
+ FROM sqlite_master
3494
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
3495
+ UNION ALL
3496
+ SELECT sql
3497
+ FROM sqlite_temp_master
3498
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
3499
+ 
3500
+  (0.1ms) CREATE INDEX "index_payola_sales_on_stripe_customer_id" ON "payola_sales" ("stripe_customer_id")
3501
+  (0.1ms) SELECT * FROM "apayola_sales"
3502
+  (0.1ms) INSERT INTO "payola_sales" ("id","email","guid","product_id","product_type","created_at","updated_at","state","stripe_id","stripe_token","card_last4","card_expiration","card_type","error","amount","fee_amount","coupon_id","opt_in","download_count","affiliate_id","customer_address","business_address","stripe_customer_id","currency","signed_custom_fields") VALUES (1, 'pete@bugsplat.info', '1v2hth', 1, 'Product', '2014-10-24 20:50:28.064239', '2014-10-24 20:50:30.964672', 'finished', 'ch_14rF0zDpyMZVJxV9h51YbGRx', 'tok_14rF0xDpyMZVJxV9zgP97t6C', '4242', '2034-12-01', 'Visa', NULL, 100, 33, NULL, NULL, NULL, NULL, NULL, NULL, 'cus_51HaSWCD64X7ii', 'usd', NULL)
3503
+  (0.2ms) INSERT INTO "payola_sales" ("id","email","guid","product_id","product_type","created_at","updated_at","state","stripe_id","stripe_token","card_last4","card_expiration","card_type","error","amount","fee_amount","coupon_id","opt_in","download_count","affiliate_id","customer_address","business_address","stripe_customer_id","currency","signed_custom_fields") VALUES (2, 'pete@bugsplat.info', 'c6jbbp', 1, 'Product', '2014-10-24 20:51:08.133946', '2014-10-24 20:51:10.511057', 'finished', 'ch_14rF1dDpyMZVJxV9CmaAzs8b', 'tok_14rF1bDpyMZVJxV9C5GT9wMk', '4242', '2034-12-01', 'Visa', NULL, 100, 33, NULL, NULL, NULL, NULL, NULL, NULL, 'cus_51Haa02oV95sKB', 'usd', NULL)
3504
+  (0.2ms) INSERT INTO "payola_sales" ("id","email","guid","product_id","product_type","created_at","updated_at","state","stripe_id","stripe_token","card_last4","card_expiration","card_type","error","amount","fee_amount","coupon_id","opt_in","download_count","affiliate_id","customer_address","business_address","stripe_customer_id","currency","signed_custom_fields") VALUES (3, 'pete@bugsplat.info', 'fmd7nk', 1, 'Product', '2014-10-24 20:53:42.156020', '2014-10-24 20:53:44.712072', 'finished', 'ch_14rF47DpyMZVJxV911dIpIYX', 'tok_14rF45DpyMZVJxV9aT7V54TK', '4242', '2034-12-01', 'Visa', NULL, 100, 33, NULL, NULL, NULL, NULL, NULL, NULL, 'cus_51HdNSPn0zJj4Q', 'usd', NULL)
3505
+  (0.8ms) DROP TABLE "apayola_sales"
3506
+  (0.1ms) SELECT sql
3507
+ FROM sqlite_master
3508
+ WHERE name='index_payola_sales_on_stripe_customer_id' AND type='index'
3509
+ UNION ALL
3510
+ SELECT sql
3511
+ FROM sqlite_temp_master
3512
+ WHERE name='index_payola_sales_on_stripe_customer_id' AND type='index'
3513
+
3514
+  (0.1ms)  SELECT sql
3515
+ FROM sqlite_master
3516
+ WHERE name='index_payola_sales_on_product' AND type='index'
3517
+ UNION ALL
3518
+ SELECT sql
3519
+ FROM sqlite_temp_master
3520
+ WHERE name='index_payola_sales_on_product' AND type='index'
3521
+ 
3522
+  (0.1ms) SELECT sql
3523
+ FROM sqlite_master
3524
+ WHERE name='index_payola_sales_on_guid' AND type='index'
3525
+ UNION ALL
3526
+ SELECT sql
3527
+ FROM sqlite_temp_master
3528
+ WHERE name='index_payola_sales_on_guid' AND type='index'
3529
+
3530
+  (0.1ms)  SELECT sql
3531
+ FROM sqlite_master
3532
+ WHERE name='index_payola_sales_on_email' AND type='index'
3533
+ UNION ALL
3534
+ SELECT sql
3535
+ FROM sqlite_temp_master
3536
+ WHERE name='index_payola_sales_on_email' AND type='index'
3537
+ 
3538
+  (0.1ms) SELECT sql
3539
+ FROM sqlite_master
3540
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
3541
+ UNION ALL
3542
+ SELECT sql
3543
+ FROM sqlite_temp_master
3544
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
3545
+
3546
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141026144800"]]
3547
+  (1.0ms) commit transaction
3548
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
3549
+  (0.2ms) SELECT sql
3550
+ FROM sqlite_master
3551
+ WHERE name='index_payola_sales_on_stripe_customer_id' AND type='index'
3552
+ UNION ALL
3553
+ SELECT sql
3554
+ FROM sqlite_temp_master
3555
+ WHERE name='index_payola_sales_on_stripe_customer_id' AND type='index'
3556
+
3557
+  (0.1ms)  SELECT sql
3558
+ FROM sqlite_master
3559
+ WHERE name='index_payola_sales_on_product' AND type='index'
3560
+ UNION ALL
3561
+ SELECT sql
3562
+ FROM sqlite_temp_master
3563
+ WHERE name='index_payola_sales_on_product' AND type='index'
3564
+ 
3565
+  (0.1ms) SELECT sql
3566
+ FROM sqlite_master
3567
+ WHERE name='index_payola_sales_on_guid' AND type='index'
3568
+ UNION ALL
3569
+ SELECT sql
3570
+ FROM sqlite_temp_master
3571
+ WHERE name='index_payola_sales_on_guid' AND type='index'
3572
+
3573
+  (0.1ms)  SELECT sql
3574
+ FROM sqlite_master
3575
+ WHERE name='index_payola_sales_on_email' AND type='index'
3576
+ UNION ALL
3577
+ SELECT sql
3578
+ FROM sqlite_temp_master
3579
+ WHERE name='index_payola_sales_on_email' AND type='index'
3580
+ 
3581
+  (0.1ms) SELECT sql
3582
+ FROM sqlite_master
3583
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
3584
+ UNION ALL
3585
+ SELECT sql
3586
+ FROM sqlite_temp_master
3587
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
3588
+
3589
+
3590
+
3591
+ Started GET "/buy" for 127.0.0.1 at 2014-10-28 14:52:46 -0400
3592
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3593
+ Processing by BuyController#index as HTML
3594
+ Product Load (0.1ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
3595
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_checkout.html.erb (159.6ms)
3596
+ Rendered buy/index.html.erb within layouts/application (166.2ms)
3597
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_stripe_header.html.erb (0.6ms)
3598
+ Completed 200 OK in 339ms (Views: 298.8ms | ActiveRecord: 1.0ms)
3599
+
3600
+
3601
+ Started GET "/assets/buy.css?body=1" for 127.0.0.1 at 2014-10-28 14:52:47 -0400
3602
+
3603
+
3604
+ Started GET "/assets/buy.js?body=1" for 127.0.0.1 at 2014-10-28 14:52:47 -0400
3605
+
3606
+
3607
+ Started GET "/assets/payola/checkout_button.js?body=1" for 127.0.0.1 at 2014-10-28 14:52:47 -0400
3608
+
3609
+
3610
+ Started GET "/assets/payola/application.js?body=1" for 127.0.0.1 at 2014-10-28 14:52:47 -0400
3611
+
3612
+
3613
+ Started GET "/assets/payola.js?body=1" for 127.0.0.1 at 2014-10-28 14:52:47 -0400
3614
+
3615
+
3616
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-28 14:52:47 -0400
3617
+
3618
+
3619
+ Started GET "/assets/payola/form.js?body=1" for 127.0.0.1 at 2014-10-28 14:52:47 -0400
3620
+
3621
+
3622
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-28 14:52:47 -0400
3623
+
3624
+
3625
+ Started POST "/subdir/payola/buy/product/foo" for 127.0.0.1 at 2014-10-28 14:53:00 -0400
3626
+ Processing by Payola::TransactionsController#create as */*
3627
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"2IuIJThdxsedZZm+4RNkPb6BrXTjLdCWKYgcutw62cE=", "stripeToken"=>"tok_52kaCI8fKvdiYW", "stripeEmail"=>"test@example.com", "product_class"=>"product", "permalink"=>"foo"}
3628
+ Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."permalink" = 'foo' LIMIT 1
3629
+ Payola::Coupon Load (0.3ms) SELECT "payola_coupons".* FROM "payola_coupons" WHERE (lower(code) = lower(NULL)) ORDER BY "payola_coupons"."id" ASC LIMIT 1
3630
+ Payola::Affiliate Load (0.1ms) SELECT "payola_affiliates".* FROM "payola_affiliates" WHERE (lower(code) = lower(NULL)) ORDER BY "payola_affiliates"."id" ASC LIMIT 1
3631
+  (0.1ms) begin transaction
3632
+ Payola::Sale Exists (0.2ms) SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
3633
+ CACHE (0.0ms) SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
3634
+ Payola::Sale Exists (0.1ms) SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = '3ufe1d' LIMIT 1
3635
+ SQL (0.6ms) INSERT INTO "payola_sales" ("amount", "created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 100], ["created_at", "2014-10-28 18:53:01.110322"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "3ufe1d"], ["product_id", 1], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_52kaCI8fKvdiYW"], ["updated_at", "2014-10-28 18:53:01.110322"]]
3636
+  (0.9ms) commit transaction
3637
+ Completed 200 OK in 335ms (Views: 0.4ms | ActiveRecord: 3.1ms)
3638
+ Payola::Sale Load (0.3ms) SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."guid" = '3ufe1d' ORDER BY "payola_sales"."id" ASC LIMIT 1
3639
+  (0.1ms) begin transaction
3640
+ SQL (0.4ms) UPDATE "payola_sales" SET "state" = 'processing' WHERE "payola_sales"."id" = 4
3641
+ Payola::Sale Exists (0.2ms) SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = '3ufe1d' AND "payola_sales"."id" != 4) LIMIT 1
3642
+ SQL (0.2ms) UPDATE "payola_sales" SET "state" = ?, "updated_at" = ? WHERE "payola_sales"."id" = 4 [["state", "processing"], ["updated_at", "2014-10-28 18:53:01.271426"]]
3643
+
3644
+
3645
+ Started GET "/subdir/payola/status/3ufe1d" for 127.0.0.1 at 2014-10-28 14:53:01 -0400
3646
+ Processing by Payola::TransactionsController#status as */*
3647
+ Parameters: {"guid"=>"3ufe1d"}
3648
+ Payola::Sale Load (0.2ms) SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."guid" = '3ufe1d' ORDER BY "payola_sales"."id" ASC LIMIT 1
3649
+ Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 1.0ms)
3650
+
3651
+
3652
+ Started GET "/subdir/payola/status/3ufe1d" for 127.0.0.1 at 2014-10-28 14:53:01 -0400
3653
+ Processing by Payola::TransactionsController#status as */*
3654
+ Parameters: {"guid"=>"3ufe1d"}
3655
+ Payola::Sale Load (0.2ms) SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."guid" = '3ufe1d' ORDER BY "payola_sales"."id" ASC LIMIT 1
3656
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
3657
+
3658
+
3659
+ Started GET "/subdir/payola/status/3ufe1d" for 127.0.0.1 at 2014-10-28 14:53:02 -0400
3660
+ Processing by Payola::TransactionsController#status as */*
3661
+ Parameters: {"guid"=>"3ufe1d"}
3662
+ Payola::Sale Load (0.3ms) SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."guid" = '3ufe1d' ORDER BY "payola_sales"."id" ASC LIMIT 1
3663
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
3664
+
3665
+
3666
+ Started GET "/subdir/payola/status/3ufe1d" for 127.0.0.1 at 2014-10-28 14:53:03 -0400
3667
+ Processing by Payola::TransactionsController#status as */*
3668
+ Parameters: {"guid"=>"3ufe1d"}
3669
+ Payola::Sale Load (0.3ms) SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."guid" = '3ufe1d' ORDER BY "payola_sales"."id" ASC LIMIT 1
3670
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
3671
+
3672
+
3673
+ Started GET "/subdir/payola/status/3ufe1d" for 127.0.0.1 at 2014-10-28 14:53:03 -0400
3674
+ Processing by Payola::TransactionsController#status as */*
3675
+ Parameters: {"guid"=>"3ufe1d"}
3676
+ Payola::Sale Load (0.3ms) SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."guid" = '3ufe1d' ORDER BY "payola_sales"."id" ASC LIMIT 1
3677
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
3678
+ Payola::Sale Exists (0.2ms) SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = '3ufe1d' AND "payola_sales"."id" != 4) LIMIT 1
3679
+ SQL (0.3ms) UPDATE "payola_sales" SET "card_expiration" = ?, "card_last4" = ?, "card_type" = ?, "fee_amount" = ?, "stripe_customer_id" = ?, "stripe_id" = ?, "updated_at" = ? WHERE "payola_sales"."id" = 4 [["card_expiration", "2034-12-01"], ["card_last4", "4242"], ["card_type", "Visa"], ["fee_amount", 33], ["stripe_customer_id", "cus_52kaT9CSfu0alj"], ["stripe_id", "ch_52kaTQfCRbZSOv"], ["updated_at", "2014-10-28 18:53:03.908193"]]
3680
+  (0.1ms) SAVEPOINT active_record_1
3681
+ SQL (1.3ms) UPDATE "payola_sales" SET "state" = 'finished' WHERE "payola_sales"."id" = 4
3682
+ Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1 [["id", 1]]
3683
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3684
+  (1.3ms) commit transaction
3685
+
3686
+
3687
+ Started GET "/subdir/payola/status/3ufe1d" for 127.0.0.1 at 2014-10-28 14:53:04 -0400
3688
+ Processing by Payola::TransactionsController#status as */*
3689
+ Parameters: {"guid"=>"3ufe1d"}
3690
+ Payola::Sale Load (0.2ms) SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."guid" = '3ufe1d' ORDER BY "payola_sales"."id" ASC LIMIT 1
3691
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
3692
+
3693
+
3694
+ Started GET "/subdir/payola/confirm/3ufe1d" for 127.0.0.1 at 2014-10-28 14:53:04 -0400
3695
+ Processing by Payola::TransactionsController#show as HTML
3696
+ Parameters: {"guid"=>"3ufe1d"}
3697
+ Payola::Sale Load (0.3ms) SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."guid" = '3ufe1d' LIMIT 1
3698
+ Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1 [["id", 1]]
3699
+ Redirected to http://localhost:3000/
3700
+ Completed 302 Found in 35ms (ActiveRecord: 0.7ms)
3701
+
3702
+
3703
+ Started GET "/" for 127.0.0.1 at 2014-10-28 14:53:04 -0400
3704
+ Processing by Rails::WelcomeController#index as HTML
3705
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/railties-4.1.6/lib/rails/templates/rails/welcome/index.html.erb (0.9ms)
3706
+ Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)
3707
+ Terminating 3 actors...
3708
+ Terminating task: type=:finalizer, meta={:method_name=>:__shutdown__}, status=:callwait
3709
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
3710
+ Migrating to CreatePayolaSubscription (20141028203710)
3711
+  (0.1ms) begin transaction
3712
+  (0.5ms) CREATE TABLE "payola_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255), "guid" varchar(255), "plan_id" integer, "plan_type" integer, "state" varchar(255), "stripe_id" varchar(255), "affiliate_id" integer, "created_at" datetime, "updated_at" datetime) 
3713
+  (0.1ms) select sqlite_version(*)
3714
+  (0.2ms) CREATE INDEX "index_payola_subscriptions_on_guid" ON "payola_subscriptions" ("guid")
3715
+  (0.2ms) SELECT sql
3716
+ FROM sqlite_master
3717
+ WHERE name='index_payola_subscriptions_on_guid' AND type='index'
3718
+ UNION ALL
3719
+ SELECT sql
3720
+ FROM sqlite_temp_master
3721
+ WHERE name='index_payola_subscriptions_on_guid' AND type='index'
3722
+
3723
+  (0.2ms) CREATE INDEX "index_payola_subscriptions_on_stripe_id" ON "payola_subscriptions" ("stripe_id")
3724
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141028203710"]]
3725
+  (4.7ms) commit transaction
3726
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3727
+  (0.1ms)  SELECT sql
3728
+ FROM sqlite_master
3729
+ WHERE name='index_payola_sales_on_stripe_customer_id' AND type='index'
3730
+ UNION ALL
3731
+ SELECT sql
3732
+ FROM sqlite_temp_master
3733
+ WHERE name='index_payola_sales_on_stripe_customer_id' AND type='index'
3734
+ 
3735
+  (0.1ms) SELECT sql
3736
+ FROM sqlite_master
3737
+ WHERE name='index_payola_sales_on_product' AND type='index'
3738
+ UNION ALL
3739
+ SELECT sql
3740
+ FROM sqlite_temp_master
3741
+ WHERE name='index_payola_sales_on_product' AND type='index'
3742
+
3743
+  (0.1ms)  SELECT sql
3744
+ FROM sqlite_master
3745
+ WHERE name='index_payola_sales_on_guid' AND type='index'
3746
+ UNION ALL
3747
+ SELECT sql
3748
+ FROM sqlite_temp_master
3749
+ WHERE name='index_payola_sales_on_guid' AND type='index'
3750
+ 
3751
+  (0.1ms) SELECT sql
3752
+ FROM sqlite_master
3753
+ WHERE name='index_payola_sales_on_email' AND type='index'
3754
+ UNION ALL
3755
+ SELECT sql
3756
+ FROM sqlite_temp_master
3757
+ WHERE name='index_payola_sales_on_email' AND type='index'
3758
+
3759
+  (0.1ms)  SELECT sql
3760
+ FROM sqlite_master
3761
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
3762
+ UNION ALL
3763
+ SELECT sql
3764
+ FROM sqlite_temp_master
3765
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
3766
+ 
3767
+  (0.1ms) SELECT sql
3768
+ FROM sqlite_master
3769
+ WHERE name='index_payola_subscriptions_on_stripe_id' AND type='index'
3770
+ UNION ALL
3771
+ SELECT sql
3772
+ FROM sqlite_temp_master
3773
+ WHERE name='index_payola_subscriptions_on_stripe_id' AND type='index'
3774
+
3775
+  (0.1ms)  SELECT sql
3776
+ FROM sqlite_master
3777
+ WHERE name='index_payola_subscriptions_on_guid' AND type='index'
3778
+ UNION ALL
3779
+ SELECT sql
3780
+ FROM sqlite_temp_master
3781
+ WHERE name='index_payola_subscriptions_on_guid' AND type='index'
3782
+ 
3783
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3784
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3785
+ Migrating to CreatePayolaSubscription (20141028203710)
3786
+  (0.1ms) begin transaction
3787
+  (0.2ms) SELECT sql
3788
+ FROM sqlite_master
3789
+ WHERE name='index_payola_subscriptions_on_stripe_id' AND type='index'
3790
+ UNION ALL
3791
+ SELECT sql
3792
+ FROM sqlite_temp_master
3793
+ WHERE name='index_payola_subscriptions_on_stripe_id' AND type='index'
3794
+
3795
+  (0.1ms)  SELECT sql
3796
+ FROM sqlite_master
3797
+ WHERE name='index_payola_subscriptions_on_guid' AND type='index'
3798
+ UNION ALL
3799
+ SELECT sql
3800
+ FROM sqlite_temp_master
3801
+ WHERE name='index_payola_subscriptions_on_guid' AND type='index'
3802
+ 
3803
+  (0.3ms) DROP INDEX "index_payola_subscriptions_on_stripe_id"
3804
+  (0.1ms)  SELECT sql
3805
+ FROM sqlite_master
3806
+ WHERE name='index_payola_subscriptions_on_guid' AND type='index'
3807
+ UNION ALL
3808
+ SELECT sql
3809
+ FROM sqlite_temp_master
3810
+ WHERE name='index_payola_subscriptions_on_guid' AND type='index'
3811
+ 
3812
+  (1.3ms) DROP INDEX "index_payola_subscriptions_on_guid"
3813
+  (0.2ms) DROP TABLE "payola_subscriptions"
3814
+ SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20141028203710'
3815
+  (0.8ms) commit transaction
3816
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3817
+  (0.1ms)  SELECT sql
3818
+ FROM sqlite_master
3819
+ WHERE name='index_payola_sales_on_stripe_customer_id' AND type='index'
3820
+ UNION ALL
3821
+ SELECT sql
3822
+ FROM sqlite_temp_master
3823
+ WHERE name='index_payola_sales_on_stripe_customer_id' AND type='index'
3824
+ 
3825
+  (0.1ms) SELECT sql
3826
+ FROM sqlite_master
3827
+ WHERE name='index_payola_sales_on_product' AND type='index'
3828
+ UNION ALL
3829
+ SELECT sql
3830
+ FROM sqlite_temp_master
3831
+ WHERE name='index_payola_sales_on_product' AND type='index'
3832
+
3833
+  (0.1ms)  SELECT sql
3834
+ FROM sqlite_master
3835
+ WHERE name='index_payola_sales_on_guid' AND type='index'
3836
+ UNION ALL
3837
+ SELECT sql
3838
+ FROM sqlite_temp_master
3839
+ WHERE name='index_payola_sales_on_guid' AND type='index'
3840
+ 
3841
+  (0.1ms) SELECT sql
3842
+ FROM sqlite_master
3843
+ WHERE name='index_payola_sales_on_email' AND type='index'
3844
+ UNION ALL
3845
+ SELECT sql
3846
+ FROM sqlite_temp_master
3847
+ WHERE name='index_payola_sales_on_email' AND type='index'
3848
+
3849
+  (0.1ms)  SELECT sql
3850
+ FROM sqlite_master
3851
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
3852
+ UNION ALL
3853
+ SELECT sql
3854
+ FROM sqlite_temp_master
3855
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
3856
+ 
3857
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
3858
+ Migrating to AddOwnerToPayolaSale (20141029135848)
3859
+  (0.1ms) begin transaction
3860
+  (0.7ms) ALTER TABLE "payola_sales" ADD "owner_id" integer
3861
+  (0.3ms) ALTER TABLE "payola_sales" ADD "owner_type" varchar(255)
3862
+  (0.1ms) select sqlite_version(*)
3863
+  (0.1ms) SELECT sql
3864
+ FROM sqlite_master
3865
+ WHERE name='index_payola_sales_on_stripe_customer_id' AND type='index'
3866
+ UNION ALL
3867
+ SELECT sql
3868
+ FROM sqlite_temp_master
3869
+ WHERE name='index_payola_sales_on_stripe_customer_id' AND type='index'
3870
+
3871
+  (0.1ms)  SELECT sql
3872
+ FROM sqlite_master
3873
+ WHERE name='index_payola_sales_on_product' AND type='index'
3874
+ UNION ALL
3875
+ SELECT sql
3876
+ FROM sqlite_temp_master
3877
+ WHERE name='index_payola_sales_on_product' AND type='index'
3878
+ 
3879
+  (0.1ms) SELECT sql
3880
+ FROM sqlite_master
3881
+ WHERE name='index_payola_sales_on_guid' AND type='index'
3882
+ UNION ALL
3883
+ SELECT sql
3884
+ FROM sqlite_temp_master
3885
+ WHERE name='index_payola_sales_on_guid' AND type='index'
3886
+
3887
+  (0.1ms)  SELECT sql
3888
+ FROM sqlite_master
3889
+ WHERE name='index_payola_sales_on_email' AND type='index'
3890
+ UNION ALL
3891
+ SELECT sql
3892
+ FROM sqlite_temp_master
3893
+ WHERE name='index_payola_sales_on_email' AND type='index'
3894
+ 
3895
+  (0.1ms) SELECT sql
3896
+ FROM sqlite_master
3897
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
3898
+ UNION ALL
3899
+ SELECT sql
3900
+ FROM sqlite_temp_master
3901
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
3902
+
3903
+  (0.9ms) CREATE INDEX "index_payola_sales_on_owner_id_and_owner_type" ON "payola_sales" ("owner_id", "owner_type")
3904
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141029135848"]]
3905
+  (4.3ms) commit transaction
3906
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3907
+  (0.1ms)  SELECT sql
3908
+ FROM sqlite_master
3909
+ WHERE name='index_payola_sales_on_owner_id_and_owner_type' AND type='index'
3910
+ UNION ALL
3911
+ SELECT sql
3912
+ FROM sqlite_temp_master
3913
+ WHERE name='index_payola_sales_on_owner_id_and_owner_type' AND type='index'
3914
+ 
3915
+  (0.1ms) SELECT sql
3916
+ FROM sqlite_master
3917
+ WHERE name='index_payola_sales_on_stripe_customer_id' AND type='index'
3918
+ UNION ALL
3919
+ SELECT sql
3920
+ FROM sqlite_temp_master
3921
+ WHERE name='index_payola_sales_on_stripe_customer_id' AND type='index'
3922
+
3923
+  (0.1ms)  SELECT sql
3924
+ FROM sqlite_master
3925
+ WHERE name='index_payola_sales_on_product' AND type='index'
3926
+ UNION ALL
3927
+ SELECT sql
3928
+ FROM sqlite_temp_master
3929
+ WHERE name='index_payola_sales_on_product' AND type='index'
3930
+ 
3931
+  (0.1ms) SELECT sql
3932
+ FROM sqlite_master
3933
+ WHERE name='index_payola_sales_on_guid' AND type='index'
3934
+ UNION ALL
3935
+ SELECT sql
3936
+ FROM sqlite_temp_master
3937
+ WHERE name='index_payola_sales_on_guid' AND type='index'
3938
+
3939
+  (0.1ms)  SELECT sql
3940
+ FROM sqlite_master
3941
+ WHERE name='index_payola_sales_on_email' AND type='index'
3942
+ UNION ALL
3943
+ SELECT sql
3944
+ FROM sqlite_temp_master
3945
+ WHERE name='index_payola_sales_on_email' AND type='index'
3946
+ 
3947
+  (0.1ms) SELECT sql
3948
+ FROM sqlite_master
3949
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
3950
+ UNION ALL
3951
+ SELECT sql
3952
+ FROM sqlite_temp_master
3953
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
3954
+
3955
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3956
+ Migrating to CreateOwners (20141029140518)
3957
+  (0.1ms) begin transaction
3958
+  (0.5ms) CREATE TABLE "owners" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) 
3959
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141029140518"]]
3960
+  (2.2ms) commit transaction
3961
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3962
+  (0.1ms)  SELECT sql
3963
+ FROM sqlite_master
3964
+ WHERE name='index_payola_sales_on_owner_id_and_owner_type' AND type='index'
3965
+ UNION ALL
3966
+ SELECT sql
3967
+ FROM sqlite_temp_master
3968
+ WHERE name='index_payola_sales_on_owner_id_and_owner_type' AND type='index'
3969
+ 
3970
+  (0.1ms) SELECT sql
3971
+ FROM sqlite_master
3972
+ WHERE name='index_payola_sales_on_stripe_customer_id' AND type='index'
3973
+ UNION ALL
3974
+ SELECT sql
3975
+ FROM sqlite_temp_master
3976
+ WHERE name='index_payola_sales_on_stripe_customer_id' AND type='index'
3977
+
3978
+  (0.1ms)  SELECT sql
3979
+ FROM sqlite_master
3980
+ WHERE name='index_payola_sales_on_product' AND type='index'
3981
+ UNION ALL
3982
+ SELECT sql
3983
+ FROM sqlite_temp_master
3984
+ WHERE name='index_payola_sales_on_product' AND type='index'
3985
+ 
3986
+  (0.1ms) SELECT sql
3987
+ FROM sqlite_master
3988
+ WHERE name='index_payola_sales_on_guid' AND type='index'
3989
+ UNION ALL
3990
+ SELECT sql
3991
+ FROM sqlite_temp_master
3992
+ WHERE name='index_payola_sales_on_guid' AND type='index'
3993
+
3994
+  (0.1ms)  SELECT sql
3995
+ FROM sqlite_master
3996
+ WHERE name='index_payola_sales_on_email' AND type='index'
3997
+ UNION ALL
3998
+ SELECT sql
3999
+ FROM sqlite_temp_master
4000
+ WHERE name='index_payola_sales_on_email' AND type='index'
4001
+ 
4002
+  (0.1ms) SELECT sql
4003
+ FROM sqlite_master
4004
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
4005
+ UNION ALL
4006
+ SELECT sql
4007
+ FROM sqlite_temp_master
4008
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
4009
+
4010
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
4011
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
4012
+  (0.1ms)  SELECT sql
4013
+ FROM sqlite_master
4014
+ WHERE name='index_payola_sales_on_owner_id_and_owner_type' AND type='index'
4015
+ UNION ALL
4016
+ SELECT sql
4017
+ FROM sqlite_temp_master
4018
+ WHERE name='index_payola_sales_on_owner_id_and_owner_type' AND type='index'
4019
+ 
4020
+  (0.1ms) SELECT sql
4021
+ FROM sqlite_master
4022
+ WHERE name='index_payola_sales_on_stripe_customer_id' AND type='index'
4023
+ UNION ALL
4024
+ SELECT sql
4025
+ FROM sqlite_temp_master
4026
+ WHERE name='index_payola_sales_on_stripe_customer_id' AND type='index'
4027
+
4028
+  (0.1ms)  SELECT sql
4029
+ FROM sqlite_master
4030
+ WHERE name='index_payola_sales_on_product' AND type='index'
4031
+ UNION ALL
4032
+ SELECT sql
4033
+ FROM sqlite_temp_master
4034
+ WHERE name='index_payola_sales_on_product' AND type='index'
4035
+ 
4036
+  (0.1ms) SELECT sql
4037
+ FROM sqlite_master
4038
+ WHERE name='index_payola_sales_on_guid' AND type='index'
4039
+ UNION ALL
4040
+ SELECT sql
4041
+ FROM sqlite_temp_master
4042
+ WHERE name='index_payola_sales_on_guid' AND type='index'
4043
+
4044
+  (0.1ms)  SELECT sql
4045
+ FROM sqlite_master
4046
+ WHERE name='index_payola_sales_on_email' AND type='index'
4047
+ UNION ALL
4048
+ SELECT sql
4049
+ FROM sqlite_temp_master
4050
+ WHERE name='index_payola_sales_on_email' AND type='index'
4051
+ 
4052
+  (0.1ms) SELECT sql
4053
+ FROM sqlite_master
4054
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
4055
+ UNION ALL
4056
+ SELECT sql
4057
+ FROM sqlite_temp_master
4058
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
4059
+
4060
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
4061
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
4062
+  (0.1ms)  SELECT sql
4063
+ FROM sqlite_master
4064
+ WHERE name='index_payola_sales_on_owner_id_and_owner_type' AND type='index'
4065
+ UNION ALL
4066
+ SELECT sql
4067
+ FROM sqlite_temp_master
4068
+ WHERE name='index_payola_sales_on_owner_id_and_owner_type' AND type='index'
4069
+ 
4070
+  (0.1ms) SELECT sql
4071
+ FROM sqlite_master
4072
+ WHERE name='index_payola_sales_on_stripe_customer_id' AND type='index'
4073
+ UNION ALL
4074
+ SELECT sql
4075
+ FROM sqlite_temp_master
4076
+ WHERE name='index_payola_sales_on_stripe_customer_id' AND type='index'
4077
+
4078
+  (0.1ms)  SELECT sql
4079
+ FROM sqlite_master
4080
+ WHERE name='index_payola_sales_on_product' AND type='index'
4081
+ UNION ALL
4082
+ SELECT sql
4083
+ FROM sqlite_temp_master
4084
+ WHERE name='index_payola_sales_on_product' AND type='index'
4085
+ 
4086
+  (0.1ms) SELECT sql
4087
+ FROM sqlite_master
4088
+ WHERE name='index_payola_sales_on_guid' AND type='index'
4089
+ UNION ALL
4090
+ SELECT sql
4091
+ FROM sqlite_temp_master
4092
+ WHERE name='index_payola_sales_on_guid' AND type='index'
4093
+
4094
+  (0.1ms)  SELECT sql
4095
+ FROM sqlite_master
4096
+ WHERE name='index_payola_sales_on_email' AND type='index'
4097
+ UNION ALL
4098
+ SELECT sql
4099
+ FROM sqlite_temp_master
4100
+ WHERE name='index_payola_sales_on_email' AND type='index'
4101
+ 
4102
+  (0.1ms) SELECT sql
4103
+ FROM sqlite_master
4104
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
4105
+ UNION ALL
4106
+ SELECT sql
4107
+ FROM sqlite_temp_master
4108
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
4109
+