effective_orders 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +856 -0
- data/Rakefile +24 -0
- data/app/assets/images/effective_orders/stripe_connect.png +0 -0
- data/app/assets/javascripts/effective_orders/shipping_address_toggle.js.coffee +30 -0
- data/app/assets/javascripts/effective_orders/stripe_charges.js.coffee +26 -0
- data/app/assets/javascripts/effective_orders/stripe_subscriptions.js.coffee +28 -0
- data/app/assets/javascripts/effective_orders.js +2 -0
- data/app/assets/stylesheets/effective_orders/_order.scss +30 -0
- data/app/assets/stylesheets/effective_orders.css.scss +1 -0
- data/app/controllers/admin/customers_controller.rb +15 -0
- data/app/controllers/admin/orders_controller.rb +22 -0
- data/app/controllers/effective/carts_controller.rb +70 -0
- data/app/controllers/effective/orders_controller.rb +191 -0
- data/app/controllers/effective/providers/moneris.rb +94 -0
- data/app/controllers/effective/providers/paypal.rb +29 -0
- data/app/controllers/effective/providers/stripe.rb +125 -0
- data/app/controllers/effective/providers/stripe_connect.rb +47 -0
- data/app/controllers/effective/subscriptions_controller.rb +123 -0
- data/app/controllers/effective/webhooks_controller.rb +86 -0
- data/app/helpers/effective_carts_helper.rb +90 -0
- data/app/helpers/effective_orders_helper.rb +108 -0
- data/app/helpers/effective_paypal_helper.rb +37 -0
- data/app/helpers/effective_stripe_helper.rb +63 -0
- data/app/mailers/effective/orders_mailer.rb +64 -0
- data/app/models/concerns/acts_as_purchasable.rb +134 -0
- data/app/models/effective/access_denied.rb +17 -0
- data/app/models/effective/cart.rb +65 -0
- data/app/models/effective/cart_item.rb +40 -0
- data/app/models/effective/customer.rb +61 -0
- data/app/models/effective/datatables/customers.rb +45 -0
- data/app/models/effective/datatables/orders.rb +53 -0
- data/app/models/effective/order.rb +247 -0
- data/app/models/effective/order_item.rb +69 -0
- data/app/models/effective/stripe_charge.rb +35 -0
- data/app/models/effective/subscription.rb +95 -0
- data/app/models/inputs/price_field.rb +63 -0
- data/app/models/inputs/price_form_input.rb +7 -0
- data/app/models/inputs/price_formtastic_input.rb +9 -0
- data/app/models/inputs/price_input.rb +19 -0
- data/app/models/inputs/price_simple_form_input.rb +8 -0
- data/app/models/validators/effective/sold_out_validator.rb +7 -0
- data/app/views/active_admin/effective_orders/orders/_show.html.haml +70 -0
- data/app/views/admin/customers/_actions.html.haml +2 -0
- data/app/views/admin/customers/index.html.haml +10 -0
- data/app/views/admin/orders/index.html.haml +7 -0
- data/app/views/admin/orders/show.html.haml +11 -0
- data/app/views/effective/carts/_cart.html.haml +33 -0
- data/app/views/effective/carts/show.html.haml +18 -0
- data/app/views/effective/orders/_checkout_step_1.html.haml +39 -0
- data/app/views/effective/orders/_checkout_step_2.html.haml +18 -0
- data/app/views/effective/orders/_my_purchases.html.haml +15 -0
- data/app/views/effective/orders/_order.html.haml +4 -0
- data/app/views/effective/orders/_order_header.html.haml +21 -0
- data/app/views/effective/orders/_order_items.html.haml +39 -0
- data/app/views/effective/orders/_order_payment_details.html.haml +11 -0
- data/app/views/effective/orders/_order_shipping.html.haml +19 -0
- data/app/views/effective/orders/_order_user_fields.html.haml +10 -0
- data/app/views/effective/orders/checkout.html.haml +3 -0
- data/app/views/effective/orders/declined.html.haml +10 -0
- data/app/views/effective/orders/moneris/_form.html.haml +34 -0
- data/app/views/effective/orders/my_purchases.html.haml +6 -0
- data/app/views/effective/orders/my_sales.html.haml +28 -0
- data/app/views/effective/orders/new.html.haml +4 -0
- data/app/views/effective/orders/paypal/_form.html.haml +5 -0
- data/app/views/effective/orders/purchased.html.haml +10 -0
- data/app/views/effective/orders/show.html.haml +17 -0
- data/app/views/effective/orders/stripe/_form.html.haml +8 -0
- data/app/views/effective/orders/stripe/_subscription_fields.html.haml +7 -0
- data/app/views/effective/orders_mailer/order_receipt_to_admin.html.haml +8 -0
- data/app/views/effective/orders_mailer/order_receipt_to_buyer.html.haml +8 -0
- data/app/views/effective/orders_mailer/order_receipt_to_seller.html.haml +30 -0
- data/app/views/effective/subscriptions/index.html.haml +16 -0
- data/app/views/effective/subscriptions/new.html.haml +10 -0
- data/app/views/effective/subscriptions/show.html.haml +49 -0
- data/config/routes.rb +57 -0
- data/db/migrate/01_create_effective_orders.rb.erb +91 -0
- data/db/upgrade/02_upgrade_effective_orders_from03x.rb.erb +29 -0
- data/db/upgrade/upgrade_price_column_on_table.rb.erb +17 -0
- data/lib/effective_orders/engine.rb +52 -0
- data/lib/effective_orders/version.rb +3 -0
- data/lib/effective_orders.rb +76 -0
- data/lib/generators/effective_orders/install_generator.rb +38 -0
- data/lib/generators/effective_orders/upgrade_from03x_generator.rb +34 -0
- data/lib/generators/effective_orders/upgrade_price_column_generator.rb +34 -0
- data/lib/generators/templates/README +1 -0
- data/lib/generators/templates/effective_orders.rb +210 -0
- data/spec/controllers/carts_controller_spec.rb +143 -0
- data/spec/controllers/moneris_orders_controller_spec.rb +245 -0
- data/spec/controllers/orders_controller_spec.rb +418 -0
- data/spec/controllers/stripe_orders_controller_spec.rb +127 -0
- data/spec/controllers/webhooks_controller_spec.rb +79 -0
- data/spec/dummy/README.rdoc +8 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/models/product.rb +17 -0
- data/spec/dummy/app/models/product_with_float_price.rb +17 -0
- data/spec/dummy/app/models/user.rb +28 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/config/application.rb +31 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +37 -0
- data/spec/dummy/config/environments/production.rb +83 -0
- data/spec/dummy/config/environments/test.rb +39 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/devise.rb +254 -0
- data/spec/dummy/config/initializers/effective_addresses.rb +15 -0
- data/spec/dummy/config/initializers/effective_orders.rb +22 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +3 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/db/schema.rb +142 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +487 -0
- data/spec/dummy/log/test.log +347 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/helpers/effective_orders_helper_spec.rb +21 -0
- data/spec/models/acts_as_purchasable_spec.rb +107 -0
- data/spec/models/customer_spec.rb +71 -0
- data/spec/models/factories_spec.rb +13 -0
- data/spec/models/order_item_spec.rb +35 -0
- data/spec/models/order_spec.rb +323 -0
- data/spec/models/stripe_charge_spec.rb +39 -0
- data/spec/models/subscription_spec.rb +103 -0
- data/spec/spec_helper.rb +44 -0
- data/spec/support/factories.rb +118 -0
- metadata +387 -0
@@ -0,0 +1,347 @@
|
|
1
|
+
BLAHBLAH
|
2
|
+
BLAHBLAH
|
3
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar(255), "addressable_id" integer, "category" varchar(64), "full_name" varchar(255), "address1" varchar(255), "address2" varchar(255), "city" varchar(255), "state_code" varchar(255), "country_code" varchar(255), "postal_code" varchar(255), "updated_at" datetime, "created_at" datetime) [0m
|
4
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
5
|
+
[1m[36m (0.7ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m
|
6
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
7
|
+
FROM sqlite_master
|
8
|
+
WHERE name='index_addresses_on_addressable_id' AND type='index'
|
9
|
+
UNION ALL
|
10
|
+
SELECT sql
|
11
|
+
FROM sqlite_temp_master
|
12
|
+
WHERE name='index_addresses_on_addressable_id' AND type='index'
|
13
|
+
|
14
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m
|
15
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "cart_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cart_id" integer, "purchasable_type" varchar(255), "purchasable_id" integer, "quantity" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
16
|
+
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_cart_items_on_cart_id" ON "cart_items" ("cart_id")[0m
|
17
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
18
|
+
FROM sqlite_master
|
19
|
+
WHERE name='index_cart_items_on_cart_id' AND type='index'
|
20
|
+
UNION ALL
|
21
|
+
SELECT sql
|
22
|
+
FROM sqlite_temp_master
|
23
|
+
WHERE name='index_cart_items_on_cart_id' AND type='index'
|
24
|
+
|
25
|
+
[1m[36m (0.7ms)[0m [1mCREATE INDEX "index_cart_items_on_purchasable_id" ON "cart_items" ("purchasable_id")[0m
|
26
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
27
|
+
FROM sqlite_master
|
28
|
+
WHERE name='index_cart_items_on_purchasable_id' AND type='index'
|
29
|
+
UNION ALL
|
30
|
+
SELECT sql
|
31
|
+
FROM sqlite_temp_master
|
32
|
+
WHERE name='index_cart_items_on_purchasable_id' AND type='index'
|
33
|
+
|
34
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
35
|
+
FROM sqlite_master
|
36
|
+
WHERE name='index_cart_items_on_cart_id' AND type='index'
|
37
|
+
UNION ALL
|
38
|
+
SELECT sql
|
39
|
+
FROM sqlite_temp_master
|
40
|
+
WHERE name='index_cart_items_on_cart_id' AND type='index'
|
41
|
+
[0m
|
42
|
+
[1m[35m (0.9ms)[0m CREATE INDEX "index_cart_items_on_purchasable_type_and_purchasable_id" ON "cart_items" ("purchasable_type", "purchasable_id")
|
43
|
+
[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
|
44
|
+
[1m[35m (0.8ms)[0m CREATE INDEX "index_carts_on_user_id" ON "carts" ("user_id")
|
45
|
+
[1m[36m (0.7ms)[0m [1mCREATE TABLE "customers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "stripe_customer_id" varchar(255), "stripe_active_card" varchar(255), "stripe_connect_access_token" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
46
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "seller_id" integer, "purchasable_type" varchar(255), "purchasable_id" integer, "title" varchar(255), "quantity" integer, "price" decimal(8,2) DEFAULT 0.0, "tax_exempt" boolean, "tax_rate" decimal(5,3) DEFAULT 0.0, "quickbooks_item_name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
47
|
+
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_order_items_on_order_id" ON "order_items" ("order_id")[0m
|
48
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
49
|
+
FROM sqlite_master
|
50
|
+
WHERE name='index_order_items_on_order_id' AND type='index'
|
51
|
+
UNION ALL
|
52
|
+
SELECT sql
|
53
|
+
FROM sqlite_temp_master
|
54
|
+
WHERE name='index_order_items_on_order_id' AND type='index'
|
55
|
+
|
56
|
+
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_order_items_on_purchasable_id" ON "order_items" ("purchasable_id")[0m
|
57
|
+
[1m[35m (0.2ms)[0m SELECT sql
|
58
|
+
FROM sqlite_master
|
59
|
+
WHERE name='index_order_items_on_purchasable_id' AND type='index'
|
60
|
+
UNION ALL
|
61
|
+
SELECT sql
|
62
|
+
FROM sqlite_temp_master
|
63
|
+
WHERE name='index_order_items_on_purchasable_id' AND type='index'
|
64
|
+
|
65
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
66
|
+
FROM sqlite_master
|
67
|
+
WHERE name='index_order_items_on_order_id' AND type='index'
|
68
|
+
UNION ALL
|
69
|
+
SELECT sql
|
70
|
+
FROM sqlite_temp_master
|
71
|
+
WHERE name='index_order_items_on_order_id' AND type='index'
|
72
|
+
[0m
|
73
|
+
[1m[35m (0.7ms)[0m CREATE INDEX "index_order_items_on_purchasable_type_and_purchasable_id" ON "order_items" ("purchasable_type", "purchasable_id")
|
74
|
+
[1m[36m (0.9ms)[0m [1mCREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "purchase_state" varchar(255), "purchased_at" datetime, "payment" text, "details" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
75
|
+
[1m[35m (1.0ms)[0m CREATE INDEX "index_orders_on_user_id" ON "orders" ("user_id")
|
76
|
+
[1m[36m (0.7ms)[0m [1mCREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "price" decimal(8,2) DEFAULT 0.0, "tax_exempt" boolean, "quickbooks_item_name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
77
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "customer_id" integer, "stripe_plan_id" varchar(255), "stripe_subscription_id" varchar(255), "stripe_coupon_id" varchar(255), "title" varchar(255), "price" decimal(8,2) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime)
|
78
|
+
[1m[36m (0.9ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar(255), "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar(255), "unconfirmed_email" varchar(255), "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "email" varchar(255), "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [0m
|
79
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
80
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
81
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
82
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('4')[0m
|
83
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
84
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
85
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
86
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
87
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
88
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
89
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
90
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
91
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
92
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
93
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
94
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
95
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
96
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
97
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
98
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
99
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
100
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
101
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
102
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
103
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
104
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
105
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
106
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
107
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
108
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
109
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
110
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
111
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
112
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
113
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
114
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
115
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
116
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
117
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
118
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
119
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
120
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
121
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
122
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
123
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
124
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
125
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
126
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
127
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
128
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
129
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
130
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
131
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
132
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
133
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
134
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
135
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
136
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
137
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
138
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
139
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
140
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
141
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
142
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
143
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
144
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
145
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
146
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
147
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
148
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
149
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
150
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
151
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
152
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
153
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
154
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
155
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
156
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
157
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
158
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
159
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
160
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
161
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
162
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
163
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
164
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
165
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
166
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
167
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
168
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
169
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
170
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
171
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
172
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
173
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
174
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
175
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
176
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
177
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
178
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
179
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
180
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
181
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
182
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
183
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
184
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
185
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
186
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
187
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
188
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
189
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
190
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
191
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
192
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
193
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
194
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
195
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
196
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
197
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
198
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
199
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
200
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
201
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
202
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
203
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
204
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
205
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
206
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
207
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
208
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
209
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
210
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
211
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
212
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
213
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
214
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
215
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
216
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
217
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
218
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
219
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
220
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
221
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
222
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
223
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
224
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
225
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
226
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
227
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
228
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
229
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
230
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
231
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
232
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
233
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
234
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
235
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
236
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
237
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
238
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
239
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
240
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
241
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
242
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
243
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
244
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
245
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
246
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
247
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
248
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
249
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
250
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
251
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
252
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
253
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
254
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
255
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
256
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
257
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
258
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
259
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
260
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
261
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
262
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
263
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
264
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
265
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
266
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
267
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
268
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
269
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
270
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
271
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
272
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
273
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
274
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
275
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
276
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
277
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
278
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
279
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
280
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
281
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
282
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
283
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
284
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
285
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
286
|
+
[1m[36m (0.4ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
287
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
288
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
289
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
290
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
291
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
292
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
293
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
294
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
295
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
296
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
297
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
298
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
299
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
300
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
301
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
302
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
303
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
304
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
305
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
306
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
307
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
308
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
309
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
310
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
311
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
312
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
313
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
314
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
315
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
316
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
317
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
318
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
319
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
320
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
321
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
322
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
323
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
324
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
325
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
326
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
327
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
328
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
329
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
330
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
331
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
332
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
333
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
334
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
335
|
+
[1m[36m (0.6ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
336
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
337
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
338
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
339
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
340
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
341
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
342
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
343
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
344
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
345
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
346
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
347
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/404.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
62
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/422.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The change you wanted was rejected.</h1>
|
62
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,66 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/500.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>We're sorry, but something went wrong.</h1>
|
62
|
+
</div>
|
63
|
+
<p>If you are the application owner check the logs for more information.</p>
|
64
|
+
</div>
|
65
|
+
</body>
|
66
|
+
</html>
|
File without changes
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe EffectiveOrdersHelper do
|
4
|
+
describe '#price_to_currency' do
|
5
|
+
it 'converts an integer number of cents to a currency formatted string' do
|
6
|
+
price_to_currency(1050).should eq '$10.50'
|
7
|
+
price_to_currency(10050).should eq '$100.50'
|
8
|
+
price_to_currency(1).should eq '$0.01'
|
9
|
+
price_to_currency(99).should eq '$0.99'
|
10
|
+
price_to_currency(0).should eq '$0.00'
|
11
|
+
end
|
12
|
+
|
13
|
+
it 'raises an error when passed a decimal' do
|
14
|
+
expect { price_to_currency(10.00) }.to raise_exception
|
15
|
+
end
|
16
|
+
|
17
|
+
it 'raises an error when passed nil' do
|
18
|
+
expect { price_to_currency(nil) }.to raise_exception
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|