effective_orders 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/effective_orders/version.rb +1 -1
- metadata +10 -258
- data/spec/controllers/admin/orders_controller_spec.rb +0 -243
- data/spec/controllers/carts_controller_spec.rb +0 -143
- data/spec/controllers/ccbill_orders_controller_spec.rb +0 -103
- data/spec/controllers/moneris_orders_controller_spec.rb +0 -133
- data/spec/controllers/orders_controller_spec.rb +0 -500
- data/spec/controllers/stripe_orders_controller_spec.rb +0 -128
- data/spec/controllers/webhooks_controller_spec.rb +0 -170
- data/spec/dummy/README.rdoc +0 -8
- data/spec/dummy/Rakefile +0 -6
- data/spec/dummy/app/assets/javascripts/application.js +0 -13
- data/spec/dummy/app/assets/stylesheets/application.css +0 -15
- data/spec/dummy/app/controllers/application_controller.rb +0 -5
- data/spec/dummy/app/helpers/application_helper.rb +0 -2
- data/spec/dummy/app/models/product.rb +0 -9
- data/spec/dummy/app/models/product_with_float_price.rb +0 -9
- data/spec/dummy/app/models/user.rb +0 -11
- data/spec/dummy/app/views/layouts/application.html.erb +0 -14
- data/spec/dummy/bin/bundle +0 -3
- data/spec/dummy/bin/rails +0 -4
- data/spec/dummy/bin/rake +0 -4
- data/spec/dummy/config.ru +0 -4
- data/spec/dummy/config/application.rb +0 -32
- data/spec/dummy/config/boot.rb +0 -5
- data/spec/dummy/config/database.yml +0 -25
- data/spec/dummy/config/environment.rb +0 -5
- data/spec/dummy/config/environments/development.rb +0 -37
- data/spec/dummy/config/environments/production.rb +0 -80
- data/spec/dummy/config/environments/test.rb +0 -36
- data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/dummy/config/initializers/cookies_serializer.rb +0 -3
- data/spec/dummy/config/initializers/devise.rb +0 -254
- data/spec/dummy/config/initializers/effective_addresses.rb +0 -15
- data/spec/dummy/config/initializers/effective_orders.rb +0 -269
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -4
- data/spec/dummy/config/initializers/inflections.rb +0 -16
- data/spec/dummy/config/initializers/mime_types.rb +0 -4
- data/spec/dummy/config/initializers/session_store.rb +0 -3
- data/spec/dummy/config/initializers/simple_form.rb +0 -189
- data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/spec/dummy/config/locales/en.yml +0 -23
- data/spec/dummy/config/routes.rb +0 -3
- data/spec/dummy/config/secrets.yml +0 -22
- data/spec/dummy/db/schema.rb +0 -158
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +0 -164
- data/spec/dummy/log/test.log +0 -60
- data/spec/dummy/public/404.html +0 -67
- data/spec/dummy/public/422.html +0 -67
- data/spec/dummy/public/500.html +0 -66
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/fixtures/stripe_webhooks/invoice.payment_succeeded.without_renewals.json +0 -76
- data/spec/helpers/effective_orders_helper_spec.rb +0 -21
- data/spec/models/acts_as_purchasable_spec.rb +0 -75
- data/spec/models/customer_spec.rb +0 -72
- data/spec/models/factories_spec.rb +0 -35
- data/spec/models/order_item_spec.rb +0 -35
- data/spec/models/order_spec.rb +0 -445
- data/spec/models/stripe_charge_spec.rb +0 -39
- data/spec/models/subscription_spec.rb +0 -103
- data/spec/spec_helper.rb +0 -46
- data/spec/support/factories.rb +0 -139
@@ -1,14 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
-
# is enabled by default.
|
5
|
-
|
6
|
-
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
-
ActiveSupport.on_load(:action_controller) do
|
8
|
-
wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
|
9
|
-
end
|
10
|
-
|
11
|
-
# To enable root element in JSON for ActiveRecord objects.
|
12
|
-
# ActiveSupport.on_load(:active_record) do
|
13
|
-
# self.include_root_in_json = true
|
14
|
-
# end
|
@@ -1,23 +0,0 @@
|
|
1
|
-
# Files in the config/locales directory are used for internationalization
|
2
|
-
# and are automatically loaded by Rails. If you want to use locales other
|
3
|
-
# than English, add the necessary files in this directory.
|
4
|
-
#
|
5
|
-
# To use the locales, use `I18n.t`:
|
6
|
-
#
|
7
|
-
# I18n.t 'hello'
|
8
|
-
#
|
9
|
-
# In views, this is aliased to just `t`:
|
10
|
-
#
|
11
|
-
# <%= t('hello') %>
|
12
|
-
#
|
13
|
-
# To use a different locale, set it with `I18n.locale`:
|
14
|
-
#
|
15
|
-
# I18n.locale = :es
|
16
|
-
#
|
17
|
-
# This would use the information in config/locales/es.yml.
|
18
|
-
#
|
19
|
-
# To learn more, please read the Rails Internationalization guide
|
20
|
-
# available at http://guides.rubyonrails.org/i18n.html.
|
21
|
-
|
22
|
-
en:
|
23
|
-
hello: "Hello world"
|
data/spec/dummy/config/routes.rb
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
# Your secret key is used for verifying the integrity of signed cookies.
|
4
|
-
# If you change this key, all old signed cookies will become invalid!
|
5
|
-
|
6
|
-
# Make sure the secret is at least 30 characters and all random,
|
7
|
-
# no regular words or you'll be exposed to dictionary attacks.
|
8
|
-
# You can use `rake secret` to generate a secure secret key.
|
9
|
-
|
10
|
-
# Make sure the secrets in this file are kept private
|
11
|
-
# if you're sharing your code publicly.
|
12
|
-
|
13
|
-
development:
|
14
|
-
secret_key_base: 19ae140d6bd4164a8b1f37a052b1bf6ca83798d42339f0f7ae3d7303b3d0f6a3007327150783292086599a2dd43c56f75e805c3235a8763df32eeac6a59045d8
|
15
|
-
|
16
|
-
test:
|
17
|
-
secret_key_base: 72dcfceca73511a73eb4011013eb18f9af41567c1b924314eb4142b44c770dc6713196cfa8071d206b5066f57975dbe57df873389c033a9834fa42ae37083054
|
18
|
-
|
19
|
-
# Do not keep production secrets in the repository,
|
20
|
-
# instead read values from the environment.
|
21
|
-
production:
|
22
|
-
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
|
data/spec/dummy/db/schema.rb
DELETED
@@ -1,158 +0,0 @@
|
|
1
|
-
# encoding: UTF-8
|
2
|
-
# This file is auto-generated from the current state of the database. Instead
|
3
|
-
# of editing this file, please use the migrations feature of Active Record to
|
4
|
-
# incrementally modify your database, and then regenerate this schema definition.
|
5
|
-
#
|
6
|
-
# Note that this schema.rb definition is the authoritative source for your
|
7
|
-
# database schema. If you need to create the application database on another
|
8
|
-
# system, you should be using db:schema:load, not running all the migrations
|
9
|
-
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
|
-
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
|
-
#
|
12
|
-
# It's strongly recommended to check this file into your version control system.
|
13
|
-
|
14
|
-
ActiveRecord::Schema.define(:version => 4) do
|
15
|
-
|
16
|
-
create_table "addresses", :force => true do |t|
|
17
|
-
t.string "addressable_type"
|
18
|
-
t.integer "addressable_id"
|
19
|
-
t.string "category", :limit => 64
|
20
|
-
t.string "full_name"
|
21
|
-
t.string "address1"
|
22
|
-
t.string "address2"
|
23
|
-
t.string "city"
|
24
|
-
t.string "state_code"
|
25
|
-
t.string "country_code"
|
26
|
-
t.string "postal_code"
|
27
|
-
t.datetime "updated_at"
|
28
|
-
t.datetime "created_at"
|
29
|
-
end
|
30
|
-
|
31
|
-
add_index "addresses", ["addressable_id"], :name => "index_addresses_on_addressable_id"
|
32
|
-
add_index "addresses", ["addressable_type", "addressable_id"], :name => "index_addresses_on_addressable_type_and_addressable_id"
|
33
|
-
|
34
|
-
create_table "cart_items", :force => true do |t|
|
35
|
-
t.integer "cart_id"
|
36
|
-
t.string "purchasable_type"
|
37
|
-
t.integer "purchasable_id"
|
38
|
-
t.integer "quantity"
|
39
|
-
t.datetime "created_at", :null => false
|
40
|
-
t.datetime "updated_at", :null => false
|
41
|
-
end
|
42
|
-
|
43
|
-
add_index "cart_items", ["cart_id"], :name => "index_cart_items_on_cart_id"
|
44
|
-
add_index "cart_items", ["purchasable_id"], :name => "index_cart_items_on_purchasable_id"
|
45
|
-
add_index "cart_items", ["purchasable_type", "purchasable_id"], :name => "index_cart_items_on_purchasable_type_and_purchasable_id"
|
46
|
-
|
47
|
-
create_table "carts", :force => true do |t|
|
48
|
-
t.integer "user_id"
|
49
|
-
t.integer "cart_items_count"
|
50
|
-
t.datetime "created_at", :null => false
|
51
|
-
t.datetime "updated_at", :null => false
|
52
|
-
end
|
53
|
-
|
54
|
-
add_index "carts", ["user_id"], :name => "index_carts_on_user_id"
|
55
|
-
|
56
|
-
create_table "custom_products", force: :true do |t|
|
57
|
-
t.string "title"
|
58
|
-
t.integer "price", default: 0
|
59
|
-
t.boolean "tax_exempt"
|
60
|
-
t.datetime "created_at"
|
61
|
-
t.datetime "updated_at"
|
62
|
-
end
|
63
|
-
|
64
|
-
create_table "customers", force: true do |t|
|
65
|
-
t.integer "user_id"
|
66
|
-
t.string "stripe_customer_id"
|
67
|
-
t.string "stripe_active_card"
|
68
|
-
t.string "stripe_connect_access_token"
|
69
|
-
t.datetime "created_at"
|
70
|
-
t.datetime "updated_at"
|
71
|
-
end
|
72
|
-
|
73
|
-
create_table "order_items", :force => true do |t|
|
74
|
-
t.integer "order_id"
|
75
|
-
t.integer "seller_id"
|
76
|
-
t.string "purchasable_type"
|
77
|
-
t.integer "purchasable_id"
|
78
|
-
t.string "title"
|
79
|
-
t.integer "quantity"
|
80
|
-
t.integer "price", :default => 0
|
81
|
-
t.boolean "tax_exempt"
|
82
|
-
t.datetime "created_at", :null => false
|
83
|
-
t.datetime "updated_at", :null => false
|
84
|
-
end
|
85
|
-
|
86
|
-
add_index "order_items", ["order_id"], :name => "index_order_items_on_order_id"
|
87
|
-
add_index "order_items", ["purchasable_id"], :name => "index_order_items_on_purchasable_id"
|
88
|
-
add_index "order_items", ["purchasable_type", "purchasable_id"], :name => "index_order_items_on_purchasable_type_and_purchasable_id"
|
89
|
-
|
90
|
-
create_table "orders", :force => true do |t|
|
91
|
-
t.integer "user_id"
|
92
|
-
t.string "purchase_state"
|
93
|
-
t.datetime "purchased_at"
|
94
|
-
t.text "payment"
|
95
|
-
t.datetime "created_at", :null => false
|
96
|
-
t.datetime "updated_at", :null => false
|
97
|
-
t.text "note"
|
98
|
-
t.text "note_internal"
|
99
|
-
t.text "note_to_buyer"
|
100
|
-
t.integer "total"
|
101
|
-
t.decimal "tax_rate", precision: 6, scale: 3
|
102
|
-
t.integer "subtotal"
|
103
|
-
t.integer "tax"
|
104
|
-
t.string "payment_provider"
|
105
|
-
t.string "payment_card"
|
106
|
-
end
|
107
|
-
|
108
|
-
add_index "orders", ["user_id"], :name => "index_orders_on_user_id"
|
109
|
-
|
110
|
-
create_table "products", :force => true do |t|
|
111
|
-
t.string "title"
|
112
|
-
t.integer "price", :default => 0
|
113
|
-
t.boolean "tax_exempt"
|
114
|
-
t.datetime "created_at", :null => false
|
115
|
-
t.datetime "updated_at", :null => false
|
116
|
-
end
|
117
|
-
|
118
|
-
create_table "product_with_float_prices", :force => true do |t|
|
119
|
-
t.string "title"
|
120
|
-
t.decimal "price", :default => 0
|
121
|
-
t.boolean "tax_exempt"
|
122
|
-
t.datetime "created_at", :null => false
|
123
|
-
t.datetime "updated_at", :null => false
|
124
|
-
end
|
125
|
-
|
126
|
-
create_table "subscriptions", force: true do |t|
|
127
|
-
t.integer "customer_id"
|
128
|
-
t.string "stripe_plan_id"
|
129
|
-
t.string "stripe_subscription_id"
|
130
|
-
t.string "stripe_coupon_id"
|
131
|
-
t.string "title"
|
132
|
-
t.integer "price", default: 0
|
133
|
-
t.datetime "created_at"
|
134
|
-
t.datetime "updated_at"
|
135
|
-
end
|
136
|
-
|
137
|
-
create_table "users", force: true do |t|
|
138
|
-
t.string "encrypted_password"
|
139
|
-
t.string "reset_password_token"
|
140
|
-
t.datetime "reset_password_sent_at"
|
141
|
-
t.datetime "remember_created_at"
|
142
|
-
t.datetime "confirmation_sent_at"
|
143
|
-
t.datetime "confirmed_at"
|
144
|
-
t.string "confirmation_token"
|
145
|
-
t.string "unconfirmed_email"
|
146
|
-
t.integer "sign_in_count", default: 0
|
147
|
-
t.datetime "current_sign_in_at"
|
148
|
-
t.datetime "last_sign_in_at"
|
149
|
-
t.string "current_sign_in_ip"
|
150
|
-
t.string "last_sign_in_ip"
|
151
|
-
t.string "email"
|
152
|
-
t.integer "roles_mask", default: 0
|
153
|
-
t.boolean "archived", default: false
|
154
|
-
t.datetime "updated_at"
|
155
|
-
t.datetime "created_at"
|
156
|
-
end
|
157
|
-
|
158
|
-
end
|
data/spec/dummy/db/test.sqlite3
DELETED
Binary file
|
@@ -1,164 +0,0 @@
|
|
1
|
-
[1m[36m (1.0ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m
|
2
|
-
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
3
|
-
[1m[36m (1.2ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m
|
4
|
-
[1m[35m (0.2ms)[0m SELECT sql
|
5
|
-
FROM sqlite_master
|
6
|
-
WHERE name='index_addresses_on_addressable_id' AND type='index'
|
7
|
-
UNION ALL
|
8
|
-
SELECT sql
|
9
|
-
FROM sqlite_temp_master
|
10
|
-
WHERE name='index_addresses_on_addressable_id' AND type='index'
|
11
|
-
|
12
|
-
[1m[36m (1.2ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m
|
13
|
-
[1m[35m (0.9ms)[0m CREATE TABLE "cart_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cart_id" integer, "purchasable_type" varchar, "purchasable_id" integer, "quantity" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
14
|
-
[1m[36m (1.1ms)[0m [1mCREATE INDEX "index_cart_items_on_cart_id" ON "cart_items" ("cart_id")[0m
|
15
|
-
[1m[35m (0.1ms)[0m SELECT sql
|
16
|
-
FROM sqlite_master
|
17
|
-
WHERE name='index_cart_items_on_cart_id' AND type='index'
|
18
|
-
UNION ALL
|
19
|
-
SELECT sql
|
20
|
-
FROM sqlite_temp_master
|
21
|
-
WHERE name='index_cart_items_on_cart_id' AND type='index'
|
22
|
-
|
23
|
-
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_cart_items_on_purchasable_id" ON "cart_items" ("purchasable_id")[0m
|
24
|
-
[1m[35m (0.1ms)[0m SELECT sql
|
25
|
-
FROM sqlite_master
|
26
|
-
WHERE name='index_cart_items_on_purchasable_id' AND type='index'
|
27
|
-
UNION ALL
|
28
|
-
SELECT sql
|
29
|
-
FROM sqlite_temp_master
|
30
|
-
WHERE name='index_cart_items_on_purchasable_id' AND type='index'
|
31
|
-
|
32
|
-
[1m[36m (0.1ms)[0m [1m SELECT sql
|
33
|
-
FROM sqlite_master
|
34
|
-
WHERE name='index_cart_items_on_cart_id' AND type='index'
|
35
|
-
UNION ALL
|
36
|
-
SELECT sql
|
37
|
-
FROM sqlite_temp_master
|
38
|
-
WHERE name='index_cart_items_on_cart_id' AND type='index'
|
39
|
-
[0m
|
40
|
-
[1m[35m (0.8ms)[0m CREATE INDEX "index_cart_items_on_purchasable_type_and_purchasable_id" ON "cart_items" ("purchasable_type", "purchasable_id")
|
41
|
-
[1m[36m (0.7ms)[0m [1mCREATE TABLE "carts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
42
|
-
[1m[35m (1.0ms)[0m CREATE INDEX "index_carts_on_user_id" ON "carts" ("user_id")
|
43
|
-
[1m[36m (3.5ms)[0m [1mCREATE TABLE "custom_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "price" integer DEFAULT 0, "tax_exempt" boolean, "created_at" datetime, "updated_at" datetime) [0m
|
44
|
-
[1m[35m (2.1ms)[0m CREATE TABLE "customers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "stripe_customer_id" varchar, "stripe_active_card" varchar, "stripe_connect_access_token" varchar, "created_at" datetime, "updated_at" datetime)
|
45
|
-
[1m[36m (3.3ms)[0m [1mCREATE TABLE "order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "seller_id" integer, "purchasable_type" varchar, "purchasable_id" integer, "title" varchar, "quantity" integer, "price" integer DEFAULT 0, "tax_exempt" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
46
|
-
[1m[35m (1.3ms)[0m CREATE INDEX "index_order_items_on_order_id" ON "order_items" ("order_id")
|
47
|
-
[1m[36m (0.1ms)[0m [1m SELECT sql
|
48
|
-
FROM sqlite_master
|
49
|
-
WHERE name='index_order_items_on_order_id' AND type='index'
|
50
|
-
UNION ALL
|
51
|
-
SELECT sql
|
52
|
-
FROM sqlite_temp_master
|
53
|
-
WHERE name='index_order_items_on_order_id' AND type='index'
|
54
|
-
[0m
|
55
|
-
[1m[35m (0.8ms)[0m CREATE INDEX "index_order_items_on_purchasable_id" ON "order_items" ("purchasable_id")
|
56
|
-
[1m[36m (0.1ms)[0m [1m SELECT sql
|
57
|
-
FROM sqlite_master
|
58
|
-
WHERE name='index_order_items_on_purchasable_id' AND type='index'
|
59
|
-
UNION ALL
|
60
|
-
SELECT sql
|
61
|
-
FROM sqlite_temp_master
|
62
|
-
WHERE name='index_order_items_on_purchasable_id' AND type='index'
|
63
|
-
[0m
|
64
|
-
[1m[35m (0.1ms)[0m SELECT sql
|
65
|
-
FROM sqlite_master
|
66
|
-
WHERE name='index_order_items_on_order_id' AND type='index'
|
67
|
-
UNION ALL
|
68
|
-
SELECT sql
|
69
|
-
FROM sqlite_temp_master
|
70
|
-
WHERE name='index_order_items_on_order_id' AND type='index'
|
71
|
-
|
72
|
-
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_order_items_on_purchasable_type_and_purchasable_id" ON "order_items" ("purchasable_type", "purchasable_id")[0m
|
73
|
-
[1m[35m (2.1ms)[0m CREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "purchase_state" varchar, "purchased_at" datetime, "payment" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "note" text, "note_internal" text, "note_to_buyer" text, "total" integer, "tax_rate" decimal(6,3), "subtotal" integer, "tax" integer, "payment_provider" varchar, "payment_card" varchar)
|
74
|
-
[1m[36m (2.7ms)[0m [1mCREATE INDEX "index_orders_on_user_id" ON "orders" ("user_id")[0m
|
75
|
-
[1m[35m (1.0ms)[0m CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "price" integer DEFAULT 0, "tax_exempt" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
76
|
-
[1m[36m (1.1ms)[0m [1mCREATE TABLE "product_with_float_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "price" decimal DEFAULT 0, "tax_exempt" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
77
|
-
[1m[35m (0.8ms)[0m CREATE TABLE "subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "customer_id" integer, "stripe_plan_id" varchar, "stripe_subscription_id" varchar, "stripe_coupon_id" varchar, "title" varchar, "price" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)
|
78
|
-
[1m[36m (1.1ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [0m
|
79
|
-
[1m[35m (1.3ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
80
|
-
[1m[36m (2.3ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
81
|
-
[1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
|
82
|
-
[1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('4')[0m
|
83
|
-
[1m[36m (1.0ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m
|
84
|
-
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
85
|
-
[1m[36m (1.0ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m
|
86
|
-
[1m[35m (0.1ms)[0m SELECT sql
|
87
|
-
FROM sqlite_master
|
88
|
-
WHERE name='index_addresses_on_addressable_id' AND type='index'
|
89
|
-
UNION ALL
|
90
|
-
SELECT sql
|
91
|
-
FROM sqlite_temp_master
|
92
|
-
WHERE name='index_addresses_on_addressable_id' AND type='index'
|
93
|
-
|
94
|
-
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m
|
95
|
-
[1m[35m (1.2ms)[0m CREATE TABLE "cart_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cart_id" integer, "purchasable_type" varchar, "purchasable_id" integer, "quantity" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
96
|
-
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_cart_items_on_cart_id" ON "cart_items" ("cart_id")[0m
|
97
|
-
[1m[35m (0.1ms)[0m SELECT sql
|
98
|
-
FROM sqlite_master
|
99
|
-
WHERE name='index_cart_items_on_cart_id' AND type='index'
|
100
|
-
UNION ALL
|
101
|
-
SELECT sql
|
102
|
-
FROM sqlite_temp_master
|
103
|
-
WHERE name='index_cart_items_on_cart_id' AND type='index'
|
104
|
-
|
105
|
-
[1m[36m (0.7ms)[0m [1mCREATE INDEX "index_cart_items_on_purchasable_id" ON "cart_items" ("purchasable_id")[0m
|
106
|
-
[1m[35m (0.1ms)[0m SELECT sql
|
107
|
-
FROM sqlite_master
|
108
|
-
WHERE name='index_cart_items_on_purchasable_id' AND type='index'
|
109
|
-
UNION ALL
|
110
|
-
SELECT sql
|
111
|
-
FROM sqlite_temp_master
|
112
|
-
WHERE name='index_cart_items_on_purchasable_id' AND type='index'
|
113
|
-
|
114
|
-
[1m[36m (0.1ms)[0m [1m SELECT sql
|
115
|
-
FROM sqlite_master
|
116
|
-
WHERE name='index_cart_items_on_cart_id' AND type='index'
|
117
|
-
UNION ALL
|
118
|
-
SELECT sql
|
119
|
-
FROM sqlite_temp_master
|
120
|
-
WHERE name='index_cart_items_on_cart_id' AND type='index'
|
121
|
-
[0m
|
122
|
-
[1m[35m (0.9ms)[0m CREATE INDEX "index_cart_items_on_purchasable_type_and_purchasable_id" ON "cart_items" ("purchasable_type", "purchasable_id")
|
123
|
-
[1m[36m (2.6ms)[0m [1mCREATE TABLE "carts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "cart_items_count" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
124
|
-
[1m[35m (1.4ms)[0m CREATE INDEX "index_carts_on_user_id" ON "carts" ("user_id")
|
125
|
-
[1m[36m (3.4ms)[0m [1mCREATE TABLE "custom_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "price" integer DEFAULT 0, "tax_exempt" boolean, "created_at" datetime, "updated_at" datetime) [0m
|
126
|
-
[1m[35m (1.3ms)[0m CREATE TABLE "customers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "stripe_customer_id" varchar, "stripe_active_card" varchar, "stripe_connect_access_token" varchar, "created_at" datetime, "updated_at" datetime)
|
127
|
-
[1m[36m (2.0ms)[0m [1mCREATE TABLE "order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "seller_id" integer, "purchasable_type" varchar, "purchasable_id" integer, "title" varchar, "quantity" integer, "price" integer DEFAULT 0, "tax_exempt" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
128
|
-
[1m[35m (0.8ms)[0m CREATE INDEX "index_order_items_on_order_id" ON "order_items" ("order_id")
|
129
|
-
[1m[36m (0.2ms)[0m [1m SELECT sql
|
130
|
-
FROM sqlite_master
|
131
|
-
WHERE name='index_order_items_on_order_id' AND type='index'
|
132
|
-
UNION ALL
|
133
|
-
SELECT sql
|
134
|
-
FROM sqlite_temp_master
|
135
|
-
WHERE name='index_order_items_on_order_id' AND type='index'
|
136
|
-
[0m
|
137
|
-
[1m[35m (1.7ms)[0m CREATE INDEX "index_order_items_on_purchasable_id" ON "order_items" ("purchasable_id")
|
138
|
-
[1m[36m (0.1ms)[0m [1m SELECT sql
|
139
|
-
FROM sqlite_master
|
140
|
-
WHERE name='index_order_items_on_purchasable_id' AND type='index'
|
141
|
-
UNION ALL
|
142
|
-
SELECT sql
|
143
|
-
FROM sqlite_temp_master
|
144
|
-
WHERE name='index_order_items_on_purchasable_id' AND type='index'
|
145
|
-
[0m
|
146
|
-
[1m[35m (0.1ms)[0m SELECT sql
|
147
|
-
FROM sqlite_master
|
148
|
-
WHERE name='index_order_items_on_order_id' AND type='index'
|
149
|
-
UNION ALL
|
150
|
-
SELECT sql
|
151
|
-
FROM sqlite_temp_master
|
152
|
-
WHERE name='index_order_items_on_order_id' AND type='index'
|
153
|
-
|
154
|
-
[1m[36m (1.5ms)[0m [1mCREATE INDEX "index_order_items_on_purchasable_type_and_purchasable_id" ON "order_items" ("purchasable_type", "purchasable_id")[0m
|
155
|
-
[1m[35m (1.4ms)[0m CREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "purchase_state" varchar, "purchased_at" datetime, "payment" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "note" text, "note_internal" text, "note_to_buyer" text, "total" integer, "tax_rate" decimal(6,3), "subtotal" integer, "tax" integer, "payment_provider" varchar, "payment_card" varchar)
|
156
|
-
[1m[36m (1.3ms)[0m [1mCREATE INDEX "index_orders_on_user_id" ON "orders" ("user_id")[0m
|
157
|
-
[1m[35m (1.4ms)[0m CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "price" integer DEFAULT 0, "tax_exempt" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
158
|
-
[1m[36m (1.3ms)[0m [1mCREATE TABLE "product_with_float_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "price" decimal DEFAULT 0, "tax_exempt" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
159
|
-
[1m[35m (1.2ms)[0m CREATE TABLE "subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "customer_id" integer, "stripe_plan_id" varchar, "stripe_subscription_id" varchar, "stripe_coupon_id" varchar, "title" varchar, "price" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)
|
160
|
-
[1m[36m (2.9ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [0m
|
161
|
-
[1m[35m (1.0ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
162
|
-
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
163
|
-
[1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
|
164
|
-
[1m[36m (1.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('4')[0m
|
data/spec/dummy/log/test.log
DELETED
@@ -1,60 +0,0 @@
|
|
1
|
-
[1m[36m (0.5ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
2
|
-
[1m[36m (0.5ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
3
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
4
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
5
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
6
|
-
[1m[36m (0.5ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
7
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
8
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
9
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
10
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
11
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
12
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
13
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
14
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
15
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
16
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
17
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
18
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
19
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
20
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
21
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
22
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
23
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
24
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
25
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
26
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
27
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
28
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
29
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
30
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
31
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
32
|
-
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
33
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
34
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
35
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
36
|
-
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
37
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
38
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
39
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
40
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
41
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
42
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
43
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
44
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
45
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
46
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
47
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
48
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
49
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
50
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
51
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
52
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
53
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
54
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
55
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
56
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
57
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
58
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
59
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
60
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|