kylekthompson_shoppe 1.0.9 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/db/migrate/20141026175622_add_indexes_to_kylekthompson_shoppe_order_items.rb +2 -2
- data/db/migrate/20141026175943_add_indexes_to_kylekthompson_shoppe_orders.rb +3 -3
- data/db/migrate/20141026180333_add_indexes_to_kylekthompson_shoppe_payments.rb +2 -2
- data/db/migrate/20141026180835_add_indexes_to_kylekthompson_shoppe_product_attributes.rb +3 -3
- data/db/migrate/20141026180952_add_indexes_to_kylekthompson_shoppe_product_categories.rb +1 -1
- data/db/migrate/20141026181040_add_indexes_to_kylekthompson_shoppe_products.rb +4 -4
- data/db/migrate/20141026181312_add_indexes_to_kylekthompson_shoppe_settings.rb +1 -1
- data/db/migrate/20141026181354_add_indexes_to_kylekthompson_shoppe_stock_level_adjustments.rb +2 -2
- data/db/migrate/20141026181559_add_indexes_to_kylekthompson_shoppe_users.rb +1 -1
- data/db/migrate/20141026181716_add_indexes_to_kylekthompson_shoppe_delivery_services.rb +5 -5
- data/db/migrate/20141026181717_allow_multiple_kylekthompson_shoppe_products_per_shoppe_product_category.rb +3 -3
- data/db/migrate/20141026181718_add_nested_to_product_categories.rb +2 -2
- data/lib/kylekthompson_shoppe/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6324e4a0cfcd2436ec75d8a5fa8cf82cb9aced60
|
4
|
+
data.tar.gz: f5d860f0afdeccb4098811ba2bf564a8a3a562b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8570a067851439007294414e015b5c685884dfd339685ad935b9327c00ec6a8cdff8a16717fac71db7a1a769d2e7dd9befc3e9ef6d7c0a4e426551cebac9fd3
|
7
|
+
data.tar.gz: 7bef222405e60bfb197e69d7873206ad16f87fb34d7d3ef14755ecc89462121a75fe1ee4e8d448340e4533fed86033ef51ad0de6c3d1dbd26b13e4315508973d
|
@@ -1,6 +1,6 @@
|
|
1
1
|
class AddIndexesToKylekthompsonShoppeOrderItems < ActiveRecord::Migration
|
2
2
|
def change
|
3
|
-
add_index :
|
4
|
-
add_index :
|
3
|
+
add_index :kkt_shoppe_order_items, [:ordered_item_id, :ordered_item_type], name: 'index_kkt_shoppe_order_items_ordered_item'
|
4
|
+
add_index :kkt_shoppe_order_items, :order_id
|
5
5
|
end
|
6
6
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
class AddIndexesToKylekthompsonShoppeOrders < ActiveRecord::Migration
|
2
2
|
def change
|
3
|
-
add_index :
|
4
|
-
add_index :
|
5
|
-
add_index :
|
3
|
+
add_index :kkt_shoppe_orders, :token
|
4
|
+
add_index :kkt_shoppe_orders, :delivery_service_id
|
5
|
+
add_index :kkt_shoppe_orders, :received_at
|
6
6
|
end
|
7
7
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
class AddIndexesToKylekthompsonShoppePayments < ActiveRecord::Migration
|
2
2
|
def change
|
3
|
-
add_index :
|
4
|
-
add_index :
|
3
|
+
add_index :kkt_shoppe_payments, :order_id
|
4
|
+
add_index :kkt_shoppe_payments, :parent_payment_id
|
5
5
|
end
|
6
6
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
class AddIndexesToKylekthompsonShoppeProductAttributes < ActiveRecord::Migration
|
2
2
|
def change
|
3
|
-
add_index :
|
4
|
-
add_index :
|
5
|
-
add_index :
|
3
|
+
add_index :kkt_shoppe_product_attributes, :product_id
|
4
|
+
add_index :kkt_shoppe_product_attributes, :key
|
5
|
+
add_index :kkt_shoppe_product_attributes, :position
|
6
6
|
end
|
7
7
|
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
class AddIndexesToKylekthompsonShoppeProducts < ActiveRecord::Migration
|
2
2
|
def change
|
3
|
-
add_index :
|
4
|
-
add_index :
|
5
|
-
add_index :
|
6
|
-
add_index :
|
3
|
+
add_index :kkt_shoppe_products, :parent_id
|
4
|
+
add_index :kkt_shoppe_products, :sku
|
5
|
+
add_index :kkt_shoppe_products, :product_category_id
|
6
|
+
add_index :kkt_shoppe_products, :permalink
|
7
7
|
end
|
8
8
|
end
|
data/db/migrate/20141026181354_add_indexes_to_kylekthompson_shoppe_stock_level_adjustments.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
class AddIndexesToKylekthompsonShoppeStockLevelAdjustments < ActiveRecord::Migration
|
2
2
|
def change
|
3
|
-
add_index :
|
4
|
-
add_index :
|
3
|
+
add_index :kkt_shoppe_stock_level_adjustments, [:item_id, :item_type], name: 'index_kkt_shoppe_stock_level_adjustments_items'
|
4
|
+
add_index :kkt_shoppe_stock_level_adjustments, [:parent_id, :parent_type], name: 'index_kkt_shoppe_stock_level_adjustments_parent'
|
5
5
|
end
|
6
6
|
end
|
@@ -1,9 +1,9 @@
|
|
1
1
|
class AddIndexesToKylekthompsonShoppeDeliveryServices < ActiveRecord::Migration
|
2
2
|
def change
|
3
|
-
add_index :
|
4
|
-
add_index :
|
5
|
-
add_index :
|
6
|
-
add_index :
|
7
|
-
add_index :
|
3
|
+
add_index :kkt_shoppe_delivery_services, :active
|
4
|
+
add_index :kkt_shoppe_delivery_service_prices, :delivery_service_id
|
5
|
+
add_index :kkt_shoppe_delivery_service_prices, :min_weight
|
6
|
+
add_index :kkt_shoppe_delivery_service_prices, :max_weight
|
7
|
+
add_index :kkt_shoppe_delivery_service_prices, :price
|
8
8
|
end
|
9
9
|
end
|
@@ -6,8 +6,8 @@ class AllowMultipleKylekthompsonShoppeProductsPerKylekthompsonShoppeProductCateg
|
|
6
6
|
t.integer :product_id, null: false
|
7
7
|
t.integer :product_category_id, null: false
|
8
8
|
end
|
9
|
-
add_index :
|
10
|
-
add_index :
|
9
|
+
add_index :kkt_shoppe_product_categorizations, :product_id, name: 'categorization_by_product_id'
|
10
|
+
add_index :kkt_shoppe_product_categorizations, :product_category_id, name: 'categorization_by_product_category_id'
|
11
11
|
# define the old belongs_to association (as it's no longer on the model)
|
12
12
|
KylekthompsonShoppe::Product.class_eval do
|
13
13
|
belongs_to :old_category,
|
@@ -27,7 +27,7 @@ class AllowMultipleKylekthompsonShoppeProductsPerKylekthompsonShoppeProductCateg
|
|
27
27
|
def down
|
28
28
|
# first, we re-add our column so we've got something to populate
|
29
29
|
add_column :kylekthompson_shoppe_products, :product_category_id, :integer
|
30
|
-
add_index :
|
30
|
+
add_index :kkt_shoppe_products, :product_category_id
|
31
31
|
# define the old belongs_to association once again as we're going to re-add our goodies
|
32
32
|
KylekthompsonShoppe::Product.class_eval do
|
33
33
|
belongs_to :new_category,
|
@@ -5,8 +5,8 @@ class AddNestedToProductCategories < ActiveRecord::Migration
|
|
5
5
|
add_column :kylekthompson_shoppe_product_categories, :rgt, :integer
|
6
6
|
add_column :kylekthompson_shoppe_product_categories, :depth, :integer
|
7
7
|
|
8
|
-
add_index :
|
9
|
-
add_index :
|
8
|
+
add_index :kkt_shoppe_product_categories, :lft
|
9
|
+
add_index :kkt_shoppe_product_categories, :rgt
|
10
10
|
|
11
11
|
add_column :kylekthompson_shoppe_product_categories, :ancestral_permalink, :string
|
12
12
|
add_column :kylekthompson_shoppe_product_categories, :permalink_includes_ancestors, :boolean, default: false
|