datashift_spree 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE.txt +27 -0
- data/README.markdown +81 -0
- data/VERSION +1 -0
- data/datashift_spree.gemspec +36 -0
- data/datashift_spree.thor +52 -0
- data/lib/datashift_spree.rb +118 -0
- data/lib/datashift_spree_helper.rb +32 -0
- data/lib/helpers/spree_helper.rb +74 -0
- data/lib/loaders/spree/image_loader.rb +74 -0
- data/lib/loaders/spree/product_loader.rb +359 -0
- data/lib/thor/spree/bootstrap_cleanup.thor +61 -0
- data/lib/thor/spree/products_images.thor +252 -0
- data/lib/thor/spree/reports.thor +56 -0
- data/spec/Gemfile +28 -0
- data/spec/Gemfile.lock +243 -0
- data/spec/VERSION +1 -0
- data/spec/fixtures/SpreeImages.xls +0 -0
- data/spec/fixtures/SpreeMultiVariant.csv +4 -0
- data/spec/fixtures/SpreeProducts.csv +4 -0
- data/spec/fixtures/SpreeProducts.xls +0 -0
- data/spec/fixtures/SpreeProductsComplexTaxons.csv +6 -0
- data/spec/fixtures/SpreeProductsComplexTaxons.xls +0 -0
- data/spec/fixtures/SpreeProductsDefaults.yml +15 -0
- data/spec/fixtures/SpreeProductsMandatoryOnly.xls +0 -0
- data/spec/fixtures/SpreeProductsMultiColumn.csv +4 -0
- data/spec/fixtures/SpreeProductsMultiColumn.xls +0 -0
- data/spec/fixtures/SpreeProductsSimple.csv +4 -0
- data/spec/fixtures/SpreeProductsSimple.xls +0 -0
- data/spec/fixtures/SpreeProductsWithImages.csv +4 -0
- data/spec/fixtures/SpreeProductsWithImages.xls +0 -0
- data/spec/fixtures/SpreeZoneExample.csv +5 -0
- data/spec/fixtures/SpreeZoneExample.xls +0 -0
- data/spec/fixtures/config/database.yml +28 -0
- data/spec/fixtures/images/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/fixtures/images/DEMO_002_Powerstation.jpg +0 -0
- data/spec/fixtures/images/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/fixtures/images/DEMO_004_ror_ringer.jpeg +0 -0
- data/spec/fixtures/negative/SpreeProdMiss1Mandatory.csv +4 -0
- data/spec/fixtures/negative/SpreeProdMiss1Mandatory.xls +0 -0
- data/spec/fixtures/negative/SpreeProdMissManyMandatory.csv +4 -0
- data/spec/fixtures/negative/SpreeProdMissManyMandatory.xls +0 -0
- data/spec/fixtures/results/taxon_and_assoc_export_spec.xls +0 -0
- data/spec/fixtures/results/taxon_export_spec.xls +0 -0
- data/spec/logs/datashift_spec.log +10166 -0
- data/spec/logs/spree_sandbox.log +54803 -0
- data/spec/sandbox/Gemfile +43 -0
- data/spec/sandbox/README.rdoc +261 -0
- data/spec/sandbox/Rakefile +7 -0
- data/spec/sandbox/app/assets/images/rails.png +0 -0
- data/spec/sandbox/app/assets/javascripts/admin/all.js +12 -0
- data/spec/sandbox/app/assets/javascripts/application.js +15 -0
- data/spec/sandbox/app/assets/javascripts/store/all.js +14 -0
- data/spec/sandbox/app/assets/stylesheets/admin/all.css +13 -0
- data/spec/sandbox/app/assets/stylesheets/application.css +13 -0
- data/spec/sandbox/app/assets/stylesheets/store/all.css +13 -0
- data/spec/sandbox/app/controllers/application_controller.rb +3 -0
- data/spec/sandbox/app/helpers/application_helper.rb +2 -0
- data/spec/sandbox/app/views/layouts/application.html.erb +14 -0
- data/spec/sandbox/config.ru +4 -0
- data/spec/sandbox/config/application.rb +75 -0
- data/spec/sandbox/config/boot.rb +6 -0
- data/spec/sandbox/config/database.yml +20 -0
- data/spec/sandbox/config/environment.rb +7 -0
- data/spec/sandbox/config/environments/development.rb +37 -0
- data/spec/sandbox/config/environments/production.rb +67 -0
- data/spec/sandbox/config/environments/test.rb +37 -0
- data/spec/sandbox/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/sandbox/config/initializers/inflections.rb +15 -0
- data/spec/sandbox/config/initializers/mime_types.rb +5 -0
- data/spec/sandbox/config/initializers/secret_token.rb +7 -0
- data/spec/sandbox/config/initializers/session_store.rb +8 -0
- data/spec/sandbox/config/initializers/spree.rb +12 -0
- data/spec/sandbox/config/initializers/wrap_parameters.rb +14 -0
- data/spec/sandbox/config/locales/en.yml +5 -0
- data/spec/sandbox/config/routes.rb +65 -0
- data/spec/sandbox/config/spree.yml +2 -0
- data/spec/sandbox/db/development.sqlite3 +0 -0
- data/spec/sandbox/db/migrate/20120918081451_spree_zero_nine_zero.spree.rb +390 -0
- data/spec/sandbox/db/migrate/20120918081452_create_indexes_for_inventory_units.spree.rb +7 -0
- data/spec/sandbox/db/migrate/20120918081453_add_count_on_hand_to_variants_and_products.spree.rb +50 -0
- data/spec/sandbox/db/migrate/20120918081454_change_taxons_to_nested_set.spree.rb +47 -0
- data/spec/sandbox/db/migrate/20120918081455_move_to_configurable_gateways.spree.rb +55 -0
- data/spec/sandbox/db/migrate/20120918081456_add_open_id_authentication_tables.spree.rb +16 -0
- data/spec/sandbox/db/migrate/20120918081457_add_openid_field_to_users.spree.rb +25 -0
- data/spec/sandbox/db/migrate/20120918081458_change_preference_value_type.spree.rb +11 -0
- data/spec/sandbox/db/migrate/20120918081459_create_billing_integrations.spree.rb +13 -0
- data/spec/sandbox/db/migrate/20120918081460_charge_refactoring.spree.rb +40 -0
- data/spec/sandbox/db/migrate/20120918081461_add_some_indexes.spree.rb +12 -0
- data/spec/sandbox/db/migrate/20120918081462_checkout_state_machine.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081463_state_for_shipments.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081464_make_state_events_polymorphic.spree.rb +13 -0
- data/spec/sandbox/db/migrate/20120918081465_ship_address_id_for_checkouts.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081466_shipping_method_id_for_checkouts.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081467_creditcard_last_four_digits.spree.rb +15 -0
- data/spec/sandbox/db/migrate/20120918081468_populate_legacy_shipment_state.spree.rb +16 -0
- data/spec/sandbox/db/migrate/20120918081469_add_cost_price.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081470_shipment_id_for_inventory_units.spree.rb +26 -0
- data/spec/sandbox/db/migrate/20120918081471_cim_fields_for_creditcards.spree.rb +7 -0
- data/spec/sandbox/db/migrate/20120918081472_create_return_authorizations.spree.rb +13 -0
- data/spec/sandbox/db/migrate/20120918081473_add_return_authorization_to_inventory_units.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081474_create_trackers.spree.rb +11 -0
- data/spec/sandbox/db/migrate/20120918081475_creditcard_id_for_creditcard_txns.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081476_original_creditcard_txn_id_for_creditcard_txns.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081477_add_test_mode_to_billing_integration.spree.rb +7 -0
- data/spec/sandbox/db/migrate/20120918081478_create_payment_methods.spree.rb +17 -0
- data/spec/sandbox/db/migrate/20120918081479_polymorphic_payments.spree.rb +43 -0
- data/spec/sandbox/db/migrate/20120918081480_change_payments_payment_method_to_belongs_to.spree.rb +12 -0
- data/spec/sandbox/db/migrate/20120918081481_assign_creditcard_txns_to_payment.spree.rb +24 -0
- data/spec/sandbox/db/migrate/20120918081482_sti_for_transactions.spree.rb +16 -0
- data/spec/sandbox/db/migrate/20120918081483_drop_billing_integrations.spree.rb +17 -0
- data/spec/sandbox/db/migrate/20120918081484_deleted_at_for_payment_methods.spree.rb +15 -0
- data/spec/sandbox/db/migrate/20120918081485_add_adjustments_index.spree.rb +7 -0
- data/spec/sandbox/db/migrate/20120918081486_add_alt_text_to_images.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081487_fix_existing_coupon_credits.spree.rb +14 -0
- data/spec/sandbox/db/migrate/20120918081488_add_display_to_payment_methods.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081489_add_addresses_checkouts_indexes.spree.rb +9 -0
- data/spec/sandbox/db/migrate/20120918081490_add_icon_to_taxons.spree.rb +18 -0
- data/spec/sandbox/db/migrate/20120918081491_add_description_to_taxons.spree.rb +12 -0
- data/spec/sandbox/db/migrate/20120918081492_index_for_shipments_number.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081493_add_index_on_users_persistence_token.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081494_add_default_to_tax_categories.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081495_add_display_to_shipping_methods.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081496_rename_payment_method_display.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081497_rename_preferences_field.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081498_add_guest_flag.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081499_drop_order_token.spree.rb +10 -0
- data/spec/sandbox/db/migrate/20120918081500_payments_state_and_assigned_to_order_only.spree.rb +15 -0
- data/spec/sandbox/db/migrate/20120918081501_create_address_keys_for_order.spree.rb +7 -0
- data/spec/sandbox/db/migrate/20120918081502_payment_total_for_orders.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081503_shipping_method_id_for_orders.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081504_add_shipment_and_payment_state.spree.rb +7 -0
- data/spec/sandbox/db/migrate/20120918081505_refactor_adjustments.spree.rb +30 -0
- data/spec/sandbox/db/migrate/20120918081506_response_code_and_avs_response_for_payments.spree.rb +7 -0
- data/spec/sandbox/db/migrate/20120918081507_change_guest_flag_to_anonymous.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081508_email_for_orders.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081509_create_mail_methods.spree.rb +11 -0
- data/spec/sandbox/db/migrate/20120918081510_rename_frozen_to_locked.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081511_move_special_instructions_to_orders.spree.rb +11 -0
- data/spec/sandbox/db/migrate/20120918081512_create_log_entries.spree.rb +12 -0
- data/spec/sandbox/db/migrate/20120918081513_migrate_transactions_to_payment_state.spree.rb +99 -0
- data/spec/sandbox/db/migrate/20120918081514_delete_in_progress_orders.spree.rb +20 -0
- data/spec/sandbox/db/migrate/20120918081515_migrate_checkout_to_orders.spree.rb +24 -0
- data/spec/sandbox/db/migrate/20120918081516_remove_shipped_state.spree.rb +13 -0
- data/spec/sandbox/db/migrate/20120918081517_prevent_nil_payment_total.spree.rb +9 -0
- data/spec/sandbox/db/migrate/20120918081518_prevent_nil_email.spree.rb +10 -0
- data/spec/sandbox/db/migrate/20120918081519_generate_anonymous_users.spree.rb +21 -0
- data/spec/sandbox/db/migrate/20120918081520_update_order_state.spree.rb +13 -0
- data/spec/sandbox/db/migrate/20120918081521_cleanup_legacy_tables.spree.rb +12 -0
- data/spec/sandbox/db/migrate/20120918081522_remove_number_and_cvv_from_credicard.spree.rb +12 -0
- data/spec/sandbox/db/migrate/20120918081523_drop_anonymous_field_for_user.spree.rb +10 -0
- data/spec/sandbox/db/migrate/20120918081524_renamed_rma_cancelled_state.spree.rb +10 -0
- data/spec/sandbox/db/migrate/20120918081525_fix_problematic_index_names.spree.rb +14 -0
- data/spec/sandbox/db/migrate/20120918081526_add_position_to_variants.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081527_add_next_state_to_state_events.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081528_add_position_to_option_types.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081529_remove_trailing_slashes_in_taxon_permalinks.spree.rb +20 -0
- data/spec/sandbox/db/migrate/20120918081530_create_activators.spree.rb +15 -0
- data/spec/sandbox/db/migrate/20120918081531_eligible_for_adjustments.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081532_namespace_top_level_models.spree.rb +50 -0
- data/spec/sandbox/db/migrate/20120918081533_migrate_namespaced_polymorphic_models.spree.rb +53 -0
- data/spec/sandbox/db/migrate/20120918081534_make_adjustments_polymorphic.spree.rb +10 -0
- data/spec/sandbox/db/migrate/20120918081535_add_company_to_addresses.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081536_add_inc_tax_to_tax_rates.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081537_rename_inc_price_attribute.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081538_add_default_tax_zone.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081539_associate_shipping_methods_and_shipping_categories.spree.rb +8 -0
- data/spec/sandbox/db/migrate/20120918081540_add_match_rules_to_shipping_methods.spree.rb +8 -0
- data/spec/sandbox/db/migrate/20120918081541_new_preferences.spree.rb +49 -0
- data/spec/sandbox/db/migrate/20120918081542_rename_state_events_to_state_changes.spree.rb +10 -0
- data/spec/sandbox/db/migrate/20120918081543_add_deleted_at_to_tax_category.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081544_migrate_images_from_products_to_variants.spree.rb +36 -0
- data/spec/sandbox/db/migrate/20120918081545_rename_attachment_size_to_attachment_file_size.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081546_increase_scale_of_tax_rate_amount.spree.rb +10 -0
- data/spec/sandbox/db/migrate/20120918081547_convert_sales_tax_to_default_tax.spree.rb +10 -0
- data/spec/sandbox/db/migrate/20120918081548_add_deleted_at_to_spree_shipping_methods.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081549_make_users_email_index_unique.spree.rb +11 -0
- data/spec/sandbox/db/migrate/20120918081550_add_counter_cache_to_zone_members.spree.rb +15 -0
- data/spec/sandbox/db/migrate/20120918081551_rename_columns_for_devise.spree_auth.rb +39 -0
- data/spec/sandbox/db/migrate/20120918081552_convert_user_remember_field.spree_auth.rb +12 -0
- data/spec/sandbox/db/migrate/20120918081553_create_tokenized_permissions.spree_auth.rb +14 -0
- data/spec/sandbox/db/migrate/20120918081554_tokens_for_legacy_orders.spree_auth.rb +19 -0
- data/spec/sandbox/db/migrate/20120918081555_namespace_tokenized_permission.spree_auth.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081556_migrate_tokenized_permissions.spree_auth.rb +25 -0
- data/spec/sandbox/db/migrate/20120918081557_add_reset_password_sent_at_to_spree_users.spree_auth.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081558_add_api_key_to_spree_users.spree_api.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081559_resize_api_key_field.spree_api.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081560_rename_coupons_to_promotions.spree_promo.rb +11 -0
- data/spec/sandbox/db/migrate/20120918081561_create_promotion_rules.spree_promo.rb +25 -0
- data/spec/sandbox/db/migrate/20120918081562_match_policy_for_promotions.spree_promo.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081563_create_promotion_rules_users.spree_promo.rb +15 -0
- data/spec/sandbox/db/migrate/20120918081564_name_for_promotions.spree_promo.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081565_update_calculable_type_for_promotions.spree_promo.rb +10 -0
- data/spec/sandbox/db/migrate/20120918081566_migrate_adjustments.spree_promo.rb +10 -0
- data/spec/sandbox/db/migrate/20120918081567_promotion_changes_to_subclass_of_activator.spree_promo.rb +23 -0
- data/spec/sandbox/db/migrate/20120918081568_create_promotion_actions.spree_promo.rb +10 -0
- data/spec/sandbox/db/migrate/20120918081569_create_promotion_action_line_items.spree_promo.rb +11 -0
- data/spec/sandbox/db/migrate/20120918081570_namespace_promo_tables.spree_promo.rb +86 -0
- data/spec/sandbox/db/migrate/20120918081571_create_spree_pending_promotions.spree_promo.rb +12 -0
- data/spec/sandbox/db/migrate/20120918081572_content_visited_event.spree_promo.rb +30 -0
- data/spec/sandbox/db/production.sqlite3 +0 -0
- data/spec/sandbox/db/schema.rb +586 -0
- data/spec/sandbox/db/seeds.rb +11 -0
- data/spec/sandbox/db/test.sqlite3 +0 -0
- data/spec/sandbox/doc/README_FOR_APP +2 -0
- data/spec/sandbox/log/development.log +4856 -0
- data/spec/sandbox/log/production.log +31 -0
- data/spec/sandbox/public/404.html +26 -0
- data/spec/sandbox/public/422.html +26 -0
- data/spec/sandbox/public/500.html +25 -0
- data/spec/sandbox/public/assets/rails-be8732dac73d845ac5b142c8fb5f9fb0.png +0 -0
- data/spec/sandbox/public/favicon.ico +0 -0
- data/spec/sandbox/public/robots.txt +14 -0
- data/spec/sandbox/public/spree/products/1/large/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/1/mini/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/1/original/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/1/product/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/1/small/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/10/large/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/10/mini/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/10/original/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/10/product/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/10/small/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/11/large/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/11/mini/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/11/original/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/11/product/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/11/small/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/12/large/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/12/mini/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/12/original/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/12/product/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/12/small/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/13/large/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/13/mini/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/13/original/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/13/product/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/13/small/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/14/large/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/14/mini/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/14/original/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/14/product/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/14/small/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/15/large/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/15/mini/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/15/original/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/15/product/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/15/small/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/16/large/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/16/mini/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/16/original/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/16/product/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/16/small/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/17/large/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/17/mini/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/17/original/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/17/product/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/17/small/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/18/large/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/18/mini/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/18/original/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/18/product/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/18/small/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/19/large/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/19/mini/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/19/original/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/19/product/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/19/small/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/2/large/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/2/mini/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/2/original/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/2/product/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/2/small/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/20/large/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/20/mini/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/20/original/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/20/product/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/20/small/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/21/large/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/21/mini/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/21/original/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/21/product/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/21/small/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/22/large/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/22/mini/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/22/original/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/22/product/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/22/small/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/23/large/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/23/mini/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/23/original/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/23/product/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/23/small/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/24/large/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/24/mini/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/24/original/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/24/product/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/24/small/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/25/large/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/25/mini/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/25/original/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/25/product/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/25/small/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/26/large/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/26/mini/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/26/original/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/26/product/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/26/small/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/27/large/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/27/mini/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/27/original/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/27/product/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/27/small/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/28/large/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/28/mini/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/28/original/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/28/product/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/28/small/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/29/large/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/29/mini/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/29/original/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/29/product/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/29/small/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/3/large/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/3/mini/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/3/original/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/3/product/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/3/small/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/30/large/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/30/mini/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/30/original/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/30/product/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/30/small/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/31/large/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/31/mini/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/31/original/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/31/product/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/31/small/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/32/large/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/32/mini/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/32/original/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/32/product/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/32/small/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/33/large/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/33/mini/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/33/original/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/33/product/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/33/small/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/34/large/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/34/mini/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/34/original/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/34/product/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/34/small/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/35/large/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/35/mini/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/35/original/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/35/product/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/35/small/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/36/large/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/36/mini/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/36/original/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/36/product/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/36/small/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/37/large/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/37/mini/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/37/original/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/37/product/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/37/small/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/38/large/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/38/mini/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/38/original/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/38/product/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/38/small/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/39/large/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/39/mini/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/39/original/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/39/product/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/39/small/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/4/large/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/4/mini/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/4/original/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/4/product/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/4/small/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/40/large/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/40/mini/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/40/original/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/40/product/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/40/small/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/41/large/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/41/mini/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/41/original/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/41/product/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/41/small/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/42/large/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/42/mini/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/42/original/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/42/product/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/42/small/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/43/large/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/43/mini/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/43/original/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/43/product/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/43/small/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/44/large/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/44/mini/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/44/original/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/44/product/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/44/small/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/45/large/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/45/mini/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/45/original/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/45/product/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/45/small/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/46/large/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/46/mini/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/46/original/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/46/product/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/46/small/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/47/large/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/47/mini/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/47/original/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/47/product/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/47/small/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/48/large/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/48/mini/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/48/original/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/48/product/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/48/small/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/49/large/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/49/mini/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/49/original/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/49/product/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/49/small/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/5/large/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/5/mini/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/5/original/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/5/product/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/5/small/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/50/large/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/50/mini/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/50/original/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/50/product/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/50/small/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/51/large/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/51/mini/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/51/original/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/51/product/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/51/small/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/52/large/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/52/mini/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/52/original/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/52/product/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/52/small/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/53/large/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/53/mini/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/53/original/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/53/product/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/53/small/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/54/large/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/54/mini/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/54/original/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/54/product/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/54/small/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/55/large/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/55/mini/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/55/original/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/55/product/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/55/small/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/56/large/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/56/mini/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/56/original/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/56/product/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/56/small/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/57/large/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/57/mini/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/57/original/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/57/product/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/57/small/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/58/large/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/58/mini/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/58/original/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/58/product/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/58/small/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/59/large/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/59/mini/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/59/original/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/59/product/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/59/small/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/6/large/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/6/mini/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/6/original/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/6/product/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/6/small/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/60/large/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/60/mini/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/60/original/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/60/product/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/60/small/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/61/large/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/61/mini/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/61/original/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/61/product/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/61/small/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/62/large/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/62/mini/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/62/original/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/62/product/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/62/small/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/63/large/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/63/mini/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/63/original/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/63/product/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/63/small/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/64/large/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/64/mini/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/64/original/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/64/product/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/64/small/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/65/large/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/65/mini/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/65/original/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/65/product/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/65/small/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/66/large/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/66/mini/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/66/original/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/66/product/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/66/small/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/7/large/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/7/mini/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/7/original/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/7/product/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/7/small/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/8/large/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/8/mini/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/8/original/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/8/product/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/8/small/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/9/large/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/9/mini/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/9/original/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/9/product/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/9/small/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/script/rails +6 -0
- data/spec/sandbox/test/performance/browsing_test.rb +12 -0
- data/spec/sandbox/test/test_helper.rb +13 -0
- data/spec/sandbox/tmp/cache/assets/BDA/8A0/sprockets%2F05967796558429515381c4b5d86808c2 +29 -0
- data/spec/sandbox/tmp/cache/assets/C48/7D0/sprockets%2Fe0032828783157c117b48022df3e444e +11807 -0
- data/spec/sandbox/tmp/cache/assets/C7F/DF0/sprockets%2Fe656661206c7722b1c5512e36d9e64f0 +30 -0
- data/spec/sandbox/tmp/cache/assets/C8A/0A0/sprockets%2F26199d9652c1a334e195719ba8541dd8 +155 -0
- data/spec/sandbox/tmp/cache/assets/C9C/800/sprockets%2F0810329ee389187374ea7987e2bb9f77 +33 -0
- data/spec/sandbox/tmp/cache/assets/C9D/E90/sprockets%2Fa84ac59c0d9b39b3975951119999d917 +29 -0
- data/spec/sandbox/tmp/cache/assets/CAD/FE0/sprockets%2F3270cd94654e1c2d81fc580911900fa9 +93 -0
- data/spec/sandbox/tmp/cache/assets/CAE/1D0/sprockets%2F03dd1f063179d32c35b917edf3784163 +21 -0
- data/spec/sandbox/tmp/cache/assets/CBA/9D0/sprockets%2F2493926b475d6e62d7d1376e334c2dd6 +93 -0
- data/spec/sandbox/tmp/cache/assets/CBA/E50/sprockets%2F4e833190fdff066c72ea67164195192f +18 -0
- data/spec/sandbox/tmp/cache/assets/CC6/940/sprockets%2F381b881e222cd6d38f39965b4896b19e +209 -0
- data/spec/sandbox/tmp/cache/assets/CD0/A60/sprockets%2F47f7f8654e1b0830c06df21b1a2040e7 +33 -0
- data/spec/sandbox/tmp/cache/assets/CD7/C60/sprockets%2F07d4a437a6755702af3647c235dab26e +19 -0
- data/spec/sandbox/tmp/cache/assets/CE1/440/sprockets%2Fbf1f9f069ace2a75097338f013470d72 +412 -0
- data/spec/sandbox/tmp/cache/assets/CEF/5E0/sprockets%2F459ef82f805ce1977ee2aa452760d528 +11807 -0
- data/spec/sandbox/tmp/cache/assets/CF0/DA0/sprockets%2Fd7d5b37686831d37c4dd75e645f5e016 +3 -0
- data/spec/sandbox/tmp/cache/assets/D00/7B0/sprockets%2F2511eac4c5f8330291b2bf1326549afe +19 -0
- data/spec/sandbox/tmp/cache/assets/D04/270/sprockets%2F635ace50c8c35cab803205496eed2146 +41 -0
- data/spec/sandbox/tmp/cache/assets/D08/C70/sprockets%2F02f4cf94f805b4ee70a1aa776602355c +9 -0
- data/spec/sandbox/tmp/cache/assets/D0B/730/sprockets%2Fd63ee64122f213e93626f25be4a35d5d +6 -0
- data/spec/sandbox/tmp/cache/assets/D0F/110/sprockets%2F71ce77fd5231e5d0d705a8e085a0f871 +0 -0
- data/spec/sandbox/tmp/cache/assets/D0F/370/sprockets%2F65b590581acb0df661ea37d37c9f5152 +53 -0
- data/spec/sandbox/tmp/cache/assets/D10/370/sprockets%2Fc2793084fa0c48df282862bc45f72b2c +13 -0
- data/spec/sandbox/tmp/cache/assets/D13/4C0/sprockets%2F19b5a44963a45f1cab789db441e599a0 +412 -0
- data/spec/sandbox/tmp/cache/assets/D1A/150/sprockets%2Fe3180c81cf520cc7e5b9a2885ec98923 +19 -0
- data/spec/sandbox/tmp/cache/assets/D1B/D20/sprockets%2Fdedb93098f94d41370a4c9be4a959630 +4549 -0
- data/spec/sandbox/tmp/cache/assets/D28/190/sprockets%2F4eaae424d2725d30da3cb8245d8350c0 +6 -0
- data/spec/sandbox/tmp/cache/assets/D31/730/sprockets%2F3dfd818703e12cb1e1aff167a135571c +41 -0
- data/spec/sandbox/tmp/cache/assets/D34/B60/sprockets%2Fec323a4a5a3373a8293b3e8d66a7e4a1 +13 -0
- data/spec/sandbox/tmp/cache/assets/D34/D40/sprockets%2Fca3e3c106373aa947a80add2925a9f26 +27 -0
- data/spec/sandbox/tmp/cache/assets/D3A/BE0/sprockets%2F8fb5690b22562e324ea931f258cfa2ad +27 -0
- data/spec/sandbox/tmp/cache/assets/D3E/870/sprockets%2Fb76db487306db3e3e1dc3b3070e95d94 +4549 -0
- data/spec/sandbox/tmp/cache/assets/D43/7B0/sprockets%2F5e356ecdd6439806589c9898d9fde97d +53 -0
- data/spec/sandbox/tmp/cache/assets/D45/470/sprockets%2F6cd19fc744a481edb66691c29410fd4d +14 -0
- data/spec/sandbox/tmp/cache/assets/D46/6C0/sprockets%2F9e6ad6159bd63f648ee8a2f036b4a721 +53 -0
- data/spec/sandbox/tmp/cache/assets/D47/0D0/sprockets%2Fa1679da4467bfc1eb40c9e6e91e35555 +9409 -0
- data/spec/sandbox/tmp/cache/assets/D62/890/sprockets%2F73c3856d24a200d57f0b7ba6fe164afa +865 -0
- data/spec/sandbox/tmp/cache/assets/D6C/350/sprockets%2F9827e04e3cac800a854fd2ec0b288bf4 +0 -0
- data/spec/sandbox/tmp/cache/assets/D6D/A50/sprockets%2Ff7ded4a6bfd410172459cf4710a6c74e +3 -0
- data/spec/sandbox/tmp/cache/assets/D6F/920/sprockets%2Fd5417b2f1926be13bbd689d1e5fcc526 +14 -0
- data/spec/sandbox/tmp/cache/assets/D71/7E0/sprockets%2Fe71663bff3967b08bf6bc0fe01507db7 +865 -0
- data/spec/sandbox/tmp/cache/assets/D72/350/sprockets%2Ff1fa7173161fbe2d4d4c5e7c5741c69e +209 -0
- data/spec/sandbox/tmp/cache/assets/D73/480/sprockets%2F1fe4d21884c4db06ee089b5da298f32d +306 -0
- data/spec/sandbox/tmp/cache/assets/D74/F00/sprockets%2Ff4fbdd38742160ad3db7a76c938e83d1 +45 -0
- data/spec/sandbox/tmp/cache/assets/D78/860/sprockets%2F339f9afd4dbcbf97d0647817d343a71b +3 -0
- data/spec/sandbox/tmp/cache/assets/D79/1F0/sprockets%2F8275f49b8bab7b12a384e4ee8e09c7e1 +40 -0
- data/spec/sandbox/tmp/cache/assets/D7A/620/sprockets%2F59d4faa69df49cb38043c522eb78f19a +45 -0
- data/spec/sandbox/tmp/cache/assets/D7B/850/sprockets%2Fe1aeffb9bb8d70056596c37932ed6f42 +0 -0
- data/spec/sandbox/tmp/cache/assets/D90/C90/sprockets%2F070fb0a8b408f5b313840eaf5fcba77c +155 -0
- data/spec/sandbox/tmp/cache/assets/DA4/270/sprockets%2F501c395ed23e58949bba4f543cf6aebf +9409 -0
- data/spec/sandbox/tmp/cache/assets/DA8/E00/sprockets%2F74af3c8bd250fbfc4d98fe9551441df3 +0 -0
- data/spec/sandbox/tmp/cache/assets/DB5/B30/sprockets%2Fac3cabc1f3a1c6dea21b5968c2830b07 +306 -0
- data/spec/sandbox/tmp/cache/assets/DC9/EE0/sprockets%2Fd73a6d912e56561bc3aef7e8adcc1d40 +0 -0
- data/spec/sandbox/tmp/cache/assets/DCF/0B0/sprockets%2F17171de28f3e5db9a23ceeeceb64d355 +19 -0
- data/spec/sandbox/tmp/cache/assets/DE0/9B0/sprockets%2F98b10e39eeb69f8cb419f5114eec8ffa +239 -0
- data/spec/sandbox/tmp/cache/assets/DE8/0E0/sprockets%2Fcd07d79e6b93c6eec93f854ffff0f334 +0 -0
- data/spec/sandbox/tmp/cache/assets/DFA/D70/sprockets%2F4ad1da8bda1b38077c809f3ebacf964c +239 -0
- data/spec/sandbox/tmp/cache/assets/DFE/AA0/sprockets%2Fc127e6e63f95c0fc53ee4a12febd82af +30 -0
- data/spec/sandbox/tmp/cache/assets/E00/B50/sprockets%2F3a2feeb54bb2c9e8a360f8f8f2a9e1b4 +53 -0
- data/spec/sandbox/tmp/cache/assets/E08/C20/sprockets%2F0ad8fbc5a986d12b73b4fecc98e70ef5 +18 -0
- data/spec/sandbox/tmp/cache/assets/E09/160/sprockets%2F28fd19d52fa996bd5bc0b1cf8efc2f74 +40 -0
- data/spec/sandbox/tmp/cache/assets/E25/4C0/sprockets%2Fde2fd9fd11c04a582cdbbe3d84a35ae6 +3 -0
- data/spec/sandbox/tmp/cache/assets/E32/490/sprockets%2F78aadee343f7b9923ca5bceede46be05 +21 -0
- data/spec/sandbox/tmp/cache/assets/E5A/810/sprockets%2Fbc9acd6ef9418cbacd83015fc46ead3c +9 -0
- data/spec/spec_helper.rb +345 -0
- data/spec/spree_exporter_spec.rb +64 -0
- data/spec/spree_generator_spec.rb +91 -0
- data/spec/spree_images_loader_spec.rb +102 -0
- data/spec/spree_loader_spec.rb +237 -0
- data/spec/spree_method_mapping_spec.rb +222 -0
- data/spec/spree_taxons_loader_spec.rb +282 -0
- data/spec/spree_variants_loader_spec.rb +186 -0
- data/spec/thor_spec.rb +61 -0
- metadata +681 -0
@@ -0,0 +1,11 @@
|
|
1
|
+
# This migration comes from spree_promo (originally 20100419190933)
|
2
|
+
class RenameCouponsToPromotions < ActiveRecord::Migration
|
3
|
+
def up
|
4
|
+
drop_table :promotions if table_exists?(:promotions)
|
5
|
+
rename_table :coupons, :promotions
|
6
|
+
end
|
7
|
+
|
8
|
+
def down
|
9
|
+
rename_table :promotions, :coupons
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# This migration comes from spree_promo (originally 20100426100726)
|
2
|
+
class CreatePromotionRules < ActiveRecord::Migration
|
3
|
+
def up
|
4
|
+
create_table :promotion_rules do |t|
|
5
|
+
t.references :promotion, :user, :product_group
|
6
|
+
t.string :type
|
7
|
+
|
8
|
+
t.timestamps
|
9
|
+
end
|
10
|
+
add_index :promotion_rules, :product_group_id
|
11
|
+
add_index :promotion_rules, :user_id
|
12
|
+
|
13
|
+
create_table :products_promotion_rules do |t|
|
14
|
+
t.integer :product_id, :promotion_rule_id
|
15
|
+
end
|
16
|
+
remove_column :products_promotion_rules, :id
|
17
|
+
add_index :products_promotion_rules, :product_id
|
18
|
+
add_index :products_promotion_rules, :promotion_rule_id
|
19
|
+
end
|
20
|
+
|
21
|
+
def down
|
22
|
+
drop_table :promotion_rules
|
23
|
+
drop_table :products_promotion_rules
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# This migration comes from spree_promo (originally 20100501095202)
|
2
|
+
class CreatePromotionRulesUsers < ActiveRecord::Migration
|
3
|
+
def up
|
4
|
+
create_table :promotion_rules_users do |t|
|
5
|
+
t.integer :user_id, :promotion_rule_id
|
6
|
+
end
|
7
|
+
remove_column :promotion_rules_users, :id
|
8
|
+
add_index :promotion_rules_users, :user_id
|
9
|
+
add_index :promotion_rules_users, :promotion_rule_id
|
10
|
+
end
|
11
|
+
|
12
|
+
def down
|
13
|
+
drop_table :promotion_rules_users
|
14
|
+
end
|
15
|
+
end
|
data/spec/sandbox/db/migrate/20120918081565_update_calculable_type_for_promotions.spree_promo.rb
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
# This migration comes from spree_promo (originally 20100923095305)
|
2
|
+
class UpdateCalculableTypeForPromotions < ActiveRecord::Migration
|
3
|
+
def up
|
4
|
+
execute "UPDATE spree_calculators SET calculable_type = 'Promotion' WHERE calculable_type = 'Coupon'"
|
5
|
+
end
|
6
|
+
|
7
|
+
def down
|
8
|
+
execute "UPDATE spree_calculators SET calculable_type = 'Coupon' WHERE calculable_type = 'Promotion'"
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# This migration comes from spree_promo (originally 20101026184833)
|
2
|
+
class MigrateAdjustments < ActiveRecord::Migration
|
3
|
+
def up
|
4
|
+
execute "UPDATE spree_adjustments SET amount = 0.0 WHERE amount IS NULL"
|
5
|
+
execute "UPDATE spree_adjustments SET mandatory = #{quoted_true} WHERE locked = #{quoted_true}"
|
6
|
+
end
|
7
|
+
|
8
|
+
def down
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# This migration comes from spree_promo (originally 20110331094351)
|
2
|
+
class PromotionChangesToSubclassOfActivator < ActiveRecord::Migration
|
3
|
+
def up
|
4
|
+
drop_table :promotions
|
5
|
+
rename_column :promotion_rules, :promotion_id, :activator_id
|
6
|
+
end
|
7
|
+
|
8
|
+
def down
|
9
|
+
create_table :promotions, :force => true do |t|
|
10
|
+
t.string :name
|
11
|
+
t.string :code
|
12
|
+
t.string :description
|
13
|
+
t.integer :usage_limit
|
14
|
+
t.boolean :combine
|
15
|
+
t.datetime :expires_at
|
16
|
+
t.datetime :starts_at
|
17
|
+
t.string :match_policy, :default => 'all'
|
18
|
+
|
19
|
+
t.timestamps
|
20
|
+
end
|
21
|
+
rename_column :promotion_rules, :activator_id, :promotion_id
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# This migration comes from spree_promo (originally 20110404123358)
|
2
|
+
class CreatePromotionActions < ActiveRecord::Migration
|
3
|
+
def change
|
4
|
+
create_table :promotion_actions do |t|
|
5
|
+
t.integer :activator_id
|
6
|
+
t.integer :position
|
7
|
+
t.string :type
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# This migration comes from spree_promo (originally 20110601202923)
|
2
|
+
class CreatePromotionActionLineItems < ActiveRecord::Migration
|
3
|
+
def change
|
4
|
+
create_table :promotion_action_line_items do |t|
|
5
|
+
t.integer :promotion_action_id, :variant_id
|
6
|
+
t.integer :quantity, :default => 1
|
7
|
+
t.references :promotion_action
|
8
|
+
t.references :variant
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,86 @@
|
|
1
|
+
# This migration comes from spree_promo (originally 20120119024707)
|
2
|
+
require 'spree/core/preference_rescue'
|
3
|
+
|
4
|
+
class NamespacePromoTables < ActiveRecord::Migration
|
5
|
+
|
6
|
+
def concat(str1, str2)
|
7
|
+
dbtype = Rails.configuration.database_configuration[Rails.env]['adapter'].to_sym
|
8
|
+
|
9
|
+
case dbtype
|
10
|
+
when :mysql, :mysql2
|
11
|
+
"CONCAT(#{str1}, #{str2})"
|
12
|
+
when :sqlserver
|
13
|
+
"(#{str1} + #{str2})"
|
14
|
+
else
|
15
|
+
"(#{str1} || #{str2})"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
def update_column_data(table_names, column_name)
|
20
|
+
tables = Array.wrap(table_names)
|
21
|
+
tables.each do |table|
|
22
|
+
execute "UPDATE #{table} SET #{column_name} = #{concat("'Spree::'", column_name)}" +
|
23
|
+
" where #{column_name} NOT LIKE 'Spree::%' AND #{column_name} IS NOT NULL"
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
def replace_column_data(table_names, column_name)
|
28
|
+
tables = Array.wrap(table_names)
|
29
|
+
tables.each do |table|
|
30
|
+
execute "UPDATE #{table} SET #{column_name} = REPLACE(#{column_name}, 'Spree::', '') " +
|
31
|
+
" where #{column_name} LIKE 'Spree::%'"
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
def self.up
|
36
|
+
# namespace promo tables
|
37
|
+
rename_table :promotion_actions, :spree_promotion_actions
|
38
|
+
rename_table :promotion_rules, :spree_promotion_rules
|
39
|
+
rename_table :promotion_rules_users, :spree_promotion_rules_users
|
40
|
+
rename_table :promotion_action_line_items, :spree_promotion_action_line_items
|
41
|
+
rename_table :products_promotion_rules, :spree_products_promotion_rules
|
42
|
+
|
43
|
+
update_column_data('spree_promotion_actions', 'type')
|
44
|
+
update_column_data('spree_promotion_rules', 'type')
|
45
|
+
|
46
|
+
# add old promo preferences as columns
|
47
|
+
add_column :spree_activators, :usage_limit, :integer
|
48
|
+
add_column :spree_activators, :match_policy, :string, :default => 'all'
|
49
|
+
add_column :spree_activators, :code, :string
|
50
|
+
add_column :spree_activators, :advertise, :boolean, :default => false
|
51
|
+
|
52
|
+
Spree::Activator.reset_column_information
|
53
|
+
|
54
|
+
Spree::Preference.where(:owner_type => 'Spree::Activator').each do |preference|
|
55
|
+
unless Spree::Activator.exists? preference.owner_id
|
56
|
+
preference.destroy
|
57
|
+
next
|
58
|
+
end
|
59
|
+
|
60
|
+
@activator = Spree::Activator.find(preference.owner_id)
|
61
|
+
@activator.update_attribute(preference.name, preference.raw_value)
|
62
|
+
preference.destroy
|
63
|
+
end
|
64
|
+
|
65
|
+
Spree::PreferenceRescue.try
|
66
|
+
|
67
|
+
# This *should* be in the new_preferences migration inside of Core but...
|
68
|
+
# This is migration needs to have these keys around so that
|
69
|
+
# we can convert the promotions over correctly.
|
70
|
+
# So they hang around until we're *finally* done with them, since promo's
|
71
|
+
# migrations are copied over *after* core, and then we ditch them.
|
72
|
+
remove_column :spree_preferences, :group_id
|
73
|
+
remove_column :spree_preferences, :group_type
|
74
|
+
end
|
75
|
+
|
76
|
+
def self.down
|
77
|
+
replace_column_data('spree_promotion_actions', 'type')
|
78
|
+
replace_column_data('spree_promotion_rules', 'type')
|
79
|
+
|
80
|
+
rename_table :spree_promotion_actions, :promotion_actions
|
81
|
+
rename_table :spree_promotion_rules, :promotion_rules
|
82
|
+
rename_table :spree_promotion_rules_users, :promotion_rules_users
|
83
|
+
rename_table :spree_promotion_action_line_items, :promotion_action_line_items
|
84
|
+
rename_table :spree_products_promotion_rules, :products_promotion_rules
|
85
|
+
end
|
86
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# This migration comes from spree_promo (originally 20120119024708)
|
2
|
+
class CreateSpreePendingPromotions < ActiveRecord::Migration
|
3
|
+
def change
|
4
|
+
create_table :spree_pending_promotions do |t|
|
5
|
+
t.references :user
|
6
|
+
t.references :promotion
|
7
|
+
end
|
8
|
+
|
9
|
+
add_index :spree_pending_promotions, :user_id
|
10
|
+
add_index :spree_pending_promotions, :promotion_id
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# This migration comes from spree_promo (originally 20120119024721)
|
2
|
+
# LandingPage used to support static pages, we've moved to a static
|
3
|
+
# event. This adds path to promotions then migrates the old LandingPage rules
|
4
|
+
class ContentVisitedEvent < ActiveRecord::Migration
|
5
|
+
|
6
|
+
# Removed Class for Migrations
|
7
|
+
class Spree::Promotion::Rules::LandingPage < Spree::PromotionRule
|
8
|
+
preference :path, :string
|
9
|
+
def eligible?(order, options = {})
|
10
|
+
true
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
def up
|
15
|
+
add_column :spree_activators, :path, :string
|
16
|
+
|
17
|
+
Spree::Promotion::Rules::LandingPage.all.each do |promotion_rule|
|
18
|
+
promotion = promotion_rule.promotion
|
19
|
+
say "migrating #{promotion.name} promotion to use 'spree.content.visited' event"
|
20
|
+
promotion.event_name = 'spree.content.visited'
|
21
|
+
promotion.path = promotion_rule.preferred_path
|
22
|
+
promotion.promotion_rules.delete promotion_rule
|
23
|
+
promotion.save(:validate => false)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
def down
|
28
|
+
remove_column :spree_activators, :path
|
29
|
+
end
|
30
|
+
end
|
File without changes
|
@@ -0,0 +1,586 @@
|
|
1
|
+
# This file is auto-generated from the current state of the database. Instead
|
2
|
+
# of editing this file, please use the migrations feature of Active Record to
|
3
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
4
|
+
#
|
5
|
+
# Note that this schema.rb definition is the authoritative source for your
|
6
|
+
# database schema. If you need to create the application database on another
|
7
|
+
# system, you should be using db:schema:load, not running all the migrations
|
8
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
9
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
10
|
+
#
|
11
|
+
# It's strongly recommended to check this file into your version control system.
|
12
|
+
|
13
|
+
ActiveRecord::Schema.define(:version => 20120918081572) do
|
14
|
+
|
15
|
+
create_table "spree_activators", :force => true do |t|
|
16
|
+
t.string "description"
|
17
|
+
t.datetime "expires_at"
|
18
|
+
t.datetime "created_at"
|
19
|
+
t.datetime "updated_at"
|
20
|
+
t.datetime "starts_at"
|
21
|
+
t.string "name"
|
22
|
+
t.string "event_name"
|
23
|
+
t.string "type"
|
24
|
+
t.integer "usage_limit"
|
25
|
+
t.string "match_policy", :default => "all"
|
26
|
+
t.string "code"
|
27
|
+
t.boolean "advertise", :default => false
|
28
|
+
t.string "path"
|
29
|
+
end
|
30
|
+
|
31
|
+
create_table "spree_addresses", :force => true do |t|
|
32
|
+
t.string "firstname"
|
33
|
+
t.string "lastname"
|
34
|
+
t.string "address1"
|
35
|
+
t.string "address2"
|
36
|
+
t.string "city"
|
37
|
+
t.string "zipcode"
|
38
|
+
t.string "phone"
|
39
|
+
t.string "state_name"
|
40
|
+
t.string "alternative_phone"
|
41
|
+
t.integer "state_id"
|
42
|
+
t.integer "country_id"
|
43
|
+
t.datetime "created_at", :null => false
|
44
|
+
t.datetime "updated_at", :null => false
|
45
|
+
t.string "company"
|
46
|
+
end
|
47
|
+
|
48
|
+
add_index "spree_addresses", ["firstname"], :name => "index_addresses_on_firstname"
|
49
|
+
add_index "spree_addresses", ["lastname"], :name => "index_addresses_on_lastname"
|
50
|
+
|
51
|
+
create_table "spree_adjustments", :force => true do |t|
|
52
|
+
t.integer "source_id"
|
53
|
+
t.decimal "amount", :precision => 8, :scale => 2
|
54
|
+
t.string "label"
|
55
|
+
t.string "source_type"
|
56
|
+
t.integer "adjustable_id"
|
57
|
+
t.datetime "created_at", :null => false
|
58
|
+
t.datetime "updated_at", :null => false
|
59
|
+
t.boolean "mandatory"
|
60
|
+
t.boolean "locked"
|
61
|
+
t.integer "originator_id"
|
62
|
+
t.string "originator_type"
|
63
|
+
t.boolean "eligible", :default => true
|
64
|
+
t.string "adjustable_type"
|
65
|
+
end
|
66
|
+
|
67
|
+
add_index "spree_adjustments", ["adjustable_id"], :name => "index_adjustments_on_order_id"
|
68
|
+
|
69
|
+
create_table "spree_assets", :force => true do |t|
|
70
|
+
t.integer "viewable_id"
|
71
|
+
t.integer "attachment_width"
|
72
|
+
t.integer "attachment_height"
|
73
|
+
t.integer "attachment_file_size"
|
74
|
+
t.integer "position"
|
75
|
+
t.string "viewable_type", :limit => 50
|
76
|
+
t.string "attachment_content_type"
|
77
|
+
t.string "attachment_file_name"
|
78
|
+
t.string "type", :limit => 75
|
79
|
+
t.datetime "attachment_updated_at"
|
80
|
+
t.text "alt"
|
81
|
+
end
|
82
|
+
|
83
|
+
add_index "spree_assets", ["viewable_id"], :name => "index_assets_on_viewable_id"
|
84
|
+
add_index "spree_assets", ["viewable_type", "type"], :name => "index_assets_on_viewable_type_and_type"
|
85
|
+
|
86
|
+
create_table "spree_calculators", :force => true do |t|
|
87
|
+
t.string "type"
|
88
|
+
t.integer "calculable_id", :null => false
|
89
|
+
t.string "calculable_type", :null => false
|
90
|
+
t.datetime "created_at", :null => false
|
91
|
+
t.datetime "updated_at", :null => false
|
92
|
+
end
|
93
|
+
|
94
|
+
create_table "spree_configurations", :force => true do |t|
|
95
|
+
t.string "name"
|
96
|
+
t.string "type", :limit => 50
|
97
|
+
t.datetime "created_at", :null => false
|
98
|
+
t.datetime "updated_at", :null => false
|
99
|
+
end
|
100
|
+
|
101
|
+
add_index "spree_configurations", ["name", "type"], :name => "index_configurations_on_name_and_type"
|
102
|
+
|
103
|
+
create_table "spree_countries", :force => true do |t|
|
104
|
+
t.string "iso_name"
|
105
|
+
t.string "iso"
|
106
|
+
t.string "iso3"
|
107
|
+
t.string "name"
|
108
|
+
t.integer "numcode"
|
109
|
+
end
|
110
|
+
|
111
|
+
create_table "spree_creditcards", :force => true do |t|
|
112
|
+
t.string "month"
|
113
|
+
t.string "year"
|
114
|
+
t.string "cc_type"
|
115
|
+
t.string "last_digits"
|
116
|
+
t.string "first_name"
|
117
|
+
t.string "last_name"
|
118
|
+
t.string "start_month"
|
119
|
+
t.string "start_year"
|
120
|
+
t.string "issue_number"
|
121
|
+
t.integer "address_id"
|
122
|
+
t.datetime "created_at", :null => false
|
123
|
+
t.datetime "updated_at", :null => false
|
124
|
+
t.string "gateway_customer_profile_id"
|
125
|
+
t.string "gateway_payment_profile_id"
|
126
|
+
end
|
127
|
+
|
128
|
+
create_table "spree_gateways", :force => true do |t|
|
129
|
+
t.string "type"
|
130
|
+
t.string "name"
|
131
|
+
t.text "description"
|
132
|
+
t.boolean "active", :default => true
|
133
|
+
t.string "environment", :default => "development"
|
134
|
+
t.string "server", :default => "test"
|
135
|
+
t.boolean "test_mode", :default => true
|
136
|
+
t.datetime "created_at", :null => false
|
137
|
+
t.datetime "updated_at", :null => false
|
138
|
+
end
|
139
|
+
|
140
|
+
create_table "spree_inventory_units", :force => true do |t|
|
141
|
+
t.integer "lock_version", :default => 0
|
142
|
+
t.string "state"
|
143
|
+
t.integer "variant_id"
|
144
|
+
t.integer "order_id"
|
145
|
+
t.datetime "created_at", :null => false
|
146
|
+
t.datetime "updated_at", :null => false
|
147
|
+
t.integer "shipment_id"
|
148
|
+
t.integer "return_authorization_id"
|
149
|
+
end
|
150
|
+
|
151
|
+
add_index "spree_inventory_units", ["order_id"], :name => "index_inventory_units_on_order_id"
|
152
|
+
add_index "spree_inventory_units", ["shipment_id"], :name => "index_inventory_units_on_shipment_id"
|
153
|
+
add_index "spree_inventory_units", ["variant_id"], :name => "index_inventory_units_on_variant_id"
|
154
|
+
|
155
|
+
create_table "spree_line_items", :force => true do |t|
|
156
|
+
t.integer "order_id"
|
157
|
+
t.integer "variant_id"
|
158
|
+
t.integer "quantity", :null => false
|
159
|
+
t.decimal "price", :precision => 8, :scale => 2, :null => false
|
160
|
+
t.datetime "created_at", :null => false
|
161
|
+
t.datetime "updated_at", :null => false
|
162
|
+
end
|
163
|
+
|
164
|
+
add_index "spree_line_items", ["order_id"], :name => "index_line_items_on_order_id"
|
165
|
+
add_index "spree_line_items", ["variant_id"], :name => "index_line_items_on_variant_id"
|
166
|
+
|
167
|
+
create_table "spree_log_entries", :force => true do |t|
|
168
|
+
t.integer "source_id"
|
169
|
+
t.string "source_type"
|
170
|
+
t.text "details"
|
171
|
+
t.datetime "created_at", :null => false
|
172
|
+
t.datetime "updated_at", :null => false
|
173
|
+
end
|
174
|
+
|
175
|
+
create_table "spree_mail_methods", :force => true do |t|
|
176
|
+
t.string "environment"
|
177
|
+
t.boolean "active", :default => true
|
178
|
+
t.datetime "created_at", :null => false
|
179
|
+
t.datetime "updated_at", :null => false
|
180
|
+
end
|
181
|
+
|
182
|
+
create_table "spree_option_types", :force => true do |t|
|
183
|
+
t.string "name", :limit => 100
|
184
|
+
t.string "presentation", :limit => 100
|
185
|
+
t.datetime "created_at", :null => false
|
186
|
+
t.datetime "updated_at", :null => false
|
187
|
+
t.integer "position", :default => 0, :null => false
|
188
|
+
end
|
189
|
+
|
190
|
+
create_table "spree_option_types_prototypes", :id => false, :force => true do |t|
|
191
|
+
t.integer "prototype_id"
|
192
|
+
t.integer "option_type_id"
|
193
|
+
end
|
194
|
+
|
195
|
+
create_table "spree_option_values", :force => true do |t|
|
196
|
+
t.integer "position"
|
197
|
+
t.string "name"
|
198
|
+
t.string "presentation"
|
199
|
+
t.integer "option_type_id"
|
200
|
+
t.datetime "created_at", :null => false
|
201
|
+
t.datetime "updated_at", :null => false
|
202
|
+
end
|
203
|
+
|
204
|
+
create_table "spree_option_values_variants", :id => false, :force => true do |t|
|
205
|
+
t.integer "variant_id"
|
206
|
+
t.integer "option_value_id"
|
207
|
+
end
|
208
|
+
|
209
|
+
add_index "spree_option_values_variants", ["variant_id", "option_value_id"], :name => "index_option_values_variants_on_variant_id_and_option_value_id"
|
210
|
+
add_index "spree_option_values_variants", ["variant_id"], :name => "index_option_values_variants_on_variant_id"
|
211
|
+
|
212
|
+
create_table "spree_orders", :force => true do |t|
|
213
|
+
t.string "number", :limit => 15
|
214
|
+
t.decimal "item_total", :precision => 8, :scale => 2, :default => 0.0, :null => false
|
215
|
+
t.decimal "total", :precision => 8, :scale => 2, :default => 0.0, :null => false
|
216
|
+
t.string "state"
|
217
|
+
t.decimal "adjustment_total", :precision => 8, :scale => 2, :default => 0.0, :null => false
|
218
|
+
t.decimal "credit_total", :precision => 8, :scale => 2, :default => 0.0, :null => false
|
219
|
+
t.integer "user_id"
|
220
|
+
t.datetime "created_at", :null => false
|
221
|
+
t.datetime "updated_at", :null => false
|
222
|
+
t.datetime "completed_at"
|
223
|
+
t.integer "bill_address_id"
|
224
|
+
t.integer "ship_address_id"
|
225
|
+
t.decimal "payment_total", :precision => 8, :scale => 2, :default => 0.0
|
226
|
+
t.integer "shipping_method_id"
|
227
|
+
t.string "shipment_state"
|
228
|
+
t.string "payment_state"
|
229
|
+
t.string "email"
|
230
|
+
t.text "special_instructions"
|
231
|
+
end
|
232
|
+
|
233
|
+
add_index "spree_orders", ["number"], :name => "index_orders_on_number"
|
234
|
+
|
235
|
+
create_table "spree_payment_methods", :force => true do |t|
|
236
|
+
t.string "type"
|
237
|
+
t.string "name"
|
238
|
+
t.text "description"
|
239
|
+
t.boolean "active", :default => true
|
240
|
+
t.string "environment", :default => "development"
|
241
|
+
t.datetime "created_at", :null => false
|
242
|
+
t.datetime "updated_at", :null => false
|
243
|
+
t.datetime "deleted_at"
|
244
|
+
t.string "display_on"
|
245
|
+
end
|
246
|
+
|
247
|
+
create_table "spree_payments", :force => true do |t|
|
248
|
+
t.decimal "amount", :precision => 8, :scale => 2, :default => 0.0, :null => false
|
249
|
+
t.integer "order_id"
|
250
|
+
t.datetime "created_at", :null => false
|
251
|
+
t.datetime "updated_at", :null => false
|
252
|
+
t.integer "source_id"
|
253
|
+
t.string "source_type"
|
254
|
+
t.integer "payment_method_id"
|
255
|
+
t.string "state"
|
256
|
+
t.string "response_code"
|
257
|
+
t.string "avs_response"
|
258
|
+
end
|
259
|
+
|
260
|
+
create_table "spree_pending_promotions", :force => true do |t|
|
261
|
+
t.integer "user_id"
|
262
|
+
t.integer "promotion_id"
|
263
|
+
end
|
264
|
+
|
265
|
+
add_index "spree_pending_promotions", ["promotion_id"], :name => "index_spree_pending_promotions_on_promotion_id"
|
266
|
+
add_index "spree_pending_promotions", ["user_id"], :name => "index_spree_pending_promotions_on_user_id"
|
267
|
+
|
268
|
+
create_table "spree_preferences", :force => true do |t|
|
269
|
+
t.string "name", :limit => 100
|
270
|
+
t.integer "owner_id", :limit => 30
|
271
|
+
t.string "owner_type", :limit => 50
|
272
|
+
t.text "value", :limit => 255
|
273
|
+
t.datetime "created_at", :null => false
|
274
|
+
t.datetime "updated_at", :null => false
|
275
|
+
t.string "key"
|
276
|
+
t.string "value_type"
|
277
|
+
end
|
278
|
+
|
279
|
+
add_index "spree_preferences", ["key"], :name => "index_spree_preferences_on_key", :unique => true
|
280
|
+
|
281
|
+
create_table "spree_product_option_types", :force => true do |t|
|
282
|
+
t.integer "position"
|
283
|
+
t.integer "product_id"
|
284
|
+
t.integer "option_type_id"
|
285
|
+
t.datetime "created_at", :null => false
|
286
|
+
t.datetime "updated_at", :null => false
|
287
|
+
end
|
288
|
+
|
289
|
+
create_table "spree_product_properties", :force => true do |t|
|
290
|
+
t.string "value"
|
291
|
+
t.integer "product_id"
|
292
|
+
t.integer "property_id"
|
293
|
+
t.datetime "created_at", :null => false
|
294
|
+
t.datetime "updated_at", :null => false
|
295
|
+
end
|
296
|
+
|
297
|
+
add_index "spree_product_properties", ["product_id"], :name => "index_product_properties_on_product_id"
|
298
|
+
|
299
|
+
create_table "spree_products", :force => true do |t|
|
300
|
+
t.string "name", :default => "", :null => false
|
301
|
+
t.text "description"
|
302
|
+
t.datetime "available_on"
|
303
|
+
t.datetime "deleted_at"
|
304
|
+
t.string "permalink"
|
305
|
+
t.string "meta_description"
|
306
|
+
t.string "meta_keywords"
|
307
|
+
t.integer "tax_category_id"
|
308
|
+
t.integer "shipping_category_id"
|
309
|
+
t.datetime "created_at", :null => false
|
310
|
+
t.datetime "updated_at", :null => false
|
311
|
+
t.integer "count_on_hand", :default => 0, :null => false
|
312
|
+
end
|
313
|
+
|
314
|
+
add_index "spree_products", ["available_on"], :name => "index_products_on_available_on"
|
315
|
+
add_index "spree_products", ["deleted_at"], :name => "index_products_on_deleted_at"
|
316
|
+
add_index "spree_products", ["name"], :name => "index_products_on_name"
|
317
|
+
add_index "spree_products", ["permalink"], :name => "index_products_on_permalink"
|
318
|
+
|
319
|
+
create_table "spree_products_promotion_rules", :id => false, :force => true do |t|
|
320
|
+
t.integer "product_id"
|
321
|
+
t.integer "promotion_rule_id"
|
322
|
+
end
|
323
|
+
|
324
|
+
add_index "spree_products_promotion_rules", ["product_id"], :name => "index_products_promotion_rules_on_product_id"
|
325
|
+
add_index "spree_products_promotion_rules", ["promotion_rule_id"], :name => "index_products_promotion_rules_on_promotion_rule_id"
|
326
|
+
|
327
|
+
create_table "spree_products_taxons", :id => false, :force => true do |t|
|
328
|
+
t.integer "product_id"
|
329
|
+
t.integer "taxon_id"
|
330
|
+
end
|
331
|
+
|
332
|
+
add_index "spree_products_taxons", ["product_id"], :name => "index_products_taxons_on_product_id"
|
333
|
+
add_index "spree_products_taxons", ["taxon_id"], :name => "index_products_taxons_on_taxon_id"
|
334
|
+
|
335
|
+
create_table "spree_promotion_action_line_items", :force => true do |t|
|
336
|
+
t.integer "promotion_action_id"
|
337
|
+
t.integer "variant_id"
|
338
|
+
t.integer "quantity", :default => 1
|
339
|
+
end
|
340
|
+
|
341
|
+
create_table "spree_promotion_actions", :force => true do |t|
|
342
|
+
t.integer "activator_id"
|
343
|
+
t.integer "position"
|
344
|
+
t.string "type"
|
345
|
+
end
|
346
|
+
|
347
|
+
create_table "spree_promotion_rules", :force => true do |t|
|
348
|
+
t.integer "activator_id"
|
349
|
+
t.integer "user_id"
|
350
|
+
t.integer "product_group_id"
|
351
|
+
t.string "type"
|
352
|
+
t.datetime "created_at", :null => false
|
353
|
+
t.datetime "updated_at", :null => false
|
354
|
+
end
|
355
|
+
|
356
|
+
add_index "spree_promotion_rules", ["product_group_id"], :name => "index_promotion_rules_on_product_group_id"
|
357
|
+
add_index "spree_promotion_rules", ["user_id"], :name => "index_promotion_rules_on_user_id"
|
358
|
+
|
359
|
+
create_table "spree_promotion_rules_users", :id => false, :force => true do |t|
|
360
|
+
t.integer "user_id"
|
361
|
+
t.integer "promotion_rule_id"
|
362
|
+
end
|
363
|
+
|
364
|
+
add_index "spree_promotion_rules_users", ["promotion_rule_id"], :name => "index_promotion_rules_users_on_promotion_rule_id"
|
365
|
+
add_index "spree_promotion_rules_users", ["user_id"], :name => "index_promotion_rules_users_on_user_id"
|
366
|
+
|
367
|
+
create_table "spree_properties", :force => true do |t|
|
368
|
+
t.string "name"
|
369
|
+
t.string "presentation", :null => false
|
370
|
+
t.datetime "created_at", :null => false
|
371
|
+
t.datetime "updated_at", :null => false
|
372
|
+
end
|
373
|
+
|
374
|
+
create_table "spree_properties_prototypes", :id => false, :force => true do |t|
|
375
|
+
t.integer "prototype_id"
|
376
|
+
t.integer "property_id"
|
377
|
+
end
|
378
|
+
|
379
|
+
create_table "spree_prototypes", :force => true do |t|
|
380
|
+
t.string "name"
|
381
|
+
t.datetime "created_at", :null => false
|
382
|
+
t.datetime "updated_at", :null => false
|
383
|
+
end
|
384
|
+
|
385
|
+
create_table "spree_return_authorizations", :force => true do |t|
|
386
|
+
t.string "number"
|
387
|
+
t.string "state"
|
388
|
+
t.decimal "amount", :precision => 8, :scale => 2, :default => 0.0, :null => false
|
389
|
+
t.integer "order_id"
|
390
|
+
t.text "reason"
|
391
|
+
t.datetime "created_at", :null => false
|
392
|
+
t.datetime "updated_at", :null => false
|
393
|
+
end
|
394
|
+
|
395
|
+
create_table "spree_roles", :force => true do |t|
|
396
|
+
t.string "name"
|
397
|
+
end
|
398
|
+
|
399
|
+
create_table "spree_roles_users", :id => false, :force => true do |t|
|
400
|
+
t.integer "role_id"
|
401
|
+
t.integer "user_id"
|
402
|
+
end
|
403
|
+
|
404
|
+
add_index "spree_roles_users", ["role_id"], :name => "index_roles_users_on_role_id"
|
405
|
+
add_index "spree_roles_users", ["user_id"], :name => "index_roles_users_on_user_id"
|
406
|
+
|
407
|
+
create_table "spree_shipments", :force => true do |t|
|
408
|
+
t.string "tracking"
|
409
|
+
t.string "number"
|
410
|
+
t.decimal "cost", :precision => 8, :scale => 2
|
411
|
+
t.datetime "shipped_at"
|
412
|
+
t.integer "order_id"
|
413
|
+
t.integer "shipping_method_id"
|
414
|
+
t.integer "address_id"
|
415
|
+
t.datetime "created_at", :null => false
|
416
|
+
t.datetime "updated_at", :null => false
|
417
|
+
t.string "state"
|
418
|
+
end
|
419
|
+
|
420
|
+
add_index "spree_shipments", ["number"], :name => "index_shipments_on_number"
|
421
|
+
|
422
|
+
create_table "spree_shipping_categories", :force => true do |t|
|
423
|
+
t.string "name"
|
424
|
+
t.datetime "created_at", :null => false
|
425
|
+
t.datetime "updated_at", :null => false
|
426
|
+
end
|
427
|
+
|
428
|
+
create_table "spree_shipping_methods", :force => true do |t|
|
429
|
+
t.string "name"
|
430
|
+
t.integer "zone_id"
|
431
|
+
t.datetime "created_at", :null => false
|
432
|
+
t.datetime "updated_at", :null => false
|
433
|
+
t.string "display_on"
|
434
|
+
t.integer "shipping_category_id"
|
435
|
+
t.boolean "match_none"
|
436
|
+
t.boolean "match_all"
|
437
|
+
t.boolean "match_one"
|
438
|
+
t.datetime "deleted_at"
|
439
|
+
end
|
440
|
+
|
441
|
+
create_table "spree_state_changes", :force => true do |t|
|
442
|
+
t.string "name"
|
443
|
+
t.string "previous_state"
|
444
|
+
t.integer "stateful_id"
|
445
|
+
t.integer "user_id"
|
446
|
+
t.datetime "created_at", :null => false
|
447
|
+
t.datetime "updated_at", :null => false
|
448
|
+
t.string "stateful_type"
|
449
|
+
t.string "next_state"
|
450
|
+
end
|
451
|
+
|
452
|
+
create_table "spree_states", :force => true do |t|
|
453
|
+
t.string "name"
|
454
|
+
t.string "abbr"
|
455
|
+
t.integer "country_id"
|
456
|
+
end
|
457
|
+
|
458
|
+
create_table "spree_tax_categories", :force => true do |t|
|
459
|
+
t.string "name"
|
460
|
+
t.string "description"
|
461
|
+
t.datetime "created_at", :null => false
|
462
|
+
t.datetime "updated_at", :null => false
|
463
|
+
t.boolean "is_default", :default => false
|
464
|
+
t.datetime "deleted_at"
|
465
|
+
end
|
466
|
+
|
467
|
+
create_table "spree_tax_rates", :force => true do |t|
|
468
|
+
t.decimal "amount", :precision => 8, :scale => 5
|
469
|
+
t.integer "zone_id"
|
470
|
+
t.integer "tax_category_id"
|
471
|
+
t.datetime "created_at", :null => false
|
472
|
+
t.datetime "updated_at", :null => false
|
473
|
+
t.boolean "included_in_price", :default => false
|
474
|
+
end
|
475
|
+
|
476
|
+
create_table "spree_taxonomies", :force => true do |t|
|
477
|
+
t.string "name", :null => false
|
478
|
+
t.datetime "created_at", :null => false
|
479
|
+
t.datetime "updated_at", :null => false
|
480
|
+
end
|
481
|
+
|
482
|
+
create_table "spree_taxons", :force => true do |t|
|
483
|
+
t.integer "parent_id"
|
484
|
+
t.integer "position", :default => 0
|
485
|
+
t.string "name", :null => false
|
486
|
+
t.string "permalink"
|
487
|
+
t.integer "taxonomy_id"
|
488
|
+
t.datetime "created_at", :null => false
|
489
|
+
t.datetime "updated_at", :null => false
|
490
|
+
t.integer "lft"
|
491
|
+
t.integer "rgt"
|
492
|
+
t.string "icon_file_name"
|
493
|
+
t.string "icon_content_type"
|
494
|
+
t.integer "icon_file_size"
|
495
|
+
t.datetime "icon_updated_at"
|
496
|
+
t.text "description"
|
497
|
+
end
|
498
|
+
|
499
|
+
add_index "spree_taxons", ["parent_id"], :name => "index_taxons_on_parent_id"
|
500
|
+
add_index "spree_taxons", ["permalink"], :name => "index_taxons_on_permalink"
|
501
|
+
add_index "spree_taxons", ["taxonomy_id"], :name => "index_taxons_on_taxonomy_id"
|
502
|
+
|
503
|
+
create_table "spree_tokenized_permissions", :force => true do |t|
|
504
|
+
t.integer "permissable_id"
|
505
|
+
t.string "permissable_type"
|
506
|
+
t.string "token"
|
507
|
+
t.datetime "created_at", :null => false
|
508
|
+
t.datetime "updated_at", :null => false
|
509
|
+
end
|
510
|
+
|
511
|
+
add_index "spree_tokenized_permissions", ["permissable_id", "permissable_type"], :name => "index_tokenized_name_and_type"
|
512
|
+
|
513
|
+
create_table "spree_trackers", :force => true do |t|
|
514
|
+
t.string "environment"
|
515
|
+
t.string "analytics_id"
|
516
|
+
t.boolean "active", :default => true
|
517
|
+
t.datetime "created_at", :null => false
|
518
|
+
t.datetime "updated_at", :null => false
|
519
|
+
end
|
520
|
+
|
521
|
+
create_table "spree_users", :force => true do |t|
|
522
|
+
t.string "encrypted_password", :limit => 128
|
523
|
+
t.string "password_salt", :limit => 128
|
524
|
+
t.string "email"
|
525
|
+
t.string "remember_token"
|
526
|
+
t.string "persistence_token"
|
527
|
+
t.string "reset_password_token"
|
528
|
+
t.string "perishable_token"
|
529
|
+
t.integer "sign_in_count", :default => 0, :null => false
|
530
|
+
t.integer "failed_attempts", :default => 0, :null => false
|
531
|
+
t.datetime "last_request_at"
|
532
|
+
t.datetime "current_sign_in_at"
|
533
|
+
t.datetime "last_sign_in_at"
|
534
|
+
t.string "current_sign_in_ip"
|
535
|
+
t.string "last_sign_in_ip"
|
536
|
+
t.string "login"
|
537
|
+
t.integer "ship_address_id"
|
538
|
+
t.integer "bill_address_id"
|
539
|
+
t.datetime "created_at", :null => false
|
540
|
+
t.datetime "updated_at", :null => false
|
541
|
+
t.string "authentication_token"
|
542
|
+
t.string "unlock_token"
|
543
|
+
t.datetime "locked_at"
|
544
|
+
t.datetime "remember_created_at"
|
545
|
+
t.datetime "reset_password_sent_at"
|
546
|
+
t.string "api_key", :limit => 48
|
547
|
+
end
|
548
|
+
|
549
|
+
add_index "spree_users", ["email"], :name => "email_idx_unique", :unique => true
|
550
|
+
add_index "spree_users", ["persistence_token"], :name => "index_users_on_persistence_token"
|
551
|
+
|
552
|
+
create_table "spree_variants", :force => true do |t|
|
553
|
+
t.string "sku", :default => "", :null => false
|
554
|
+
t.decimal "price", :precision => 8, :scale => 2, :null => false
|
555
|
+
t.decimal "weight", :precision => 8, :scale => 2
|
556
|
+
t.decimal "height", :precision => 8, :scale => 2
|
557
|
+
t.decimal "width", :precision => 8, :scale => 2
|
558
|
+
t.decimal "depth", :precision => 8, :scale => 2
|
559
|
+
t.datetime "deleted_at"
|
560
|
+
t.boolean "is_master", :default => false
|
561
|
+
t.integer "product_id"
|
562
|
+
t.integer "count_on_hand", :default => 0, :null => false
|
563
|
+
t.decimal "cost_price", :precision => 8, :scale => 2
|
564
|
+
t.integer "position"
|
565
|
+
end
|
566
|
+
|
567
|
+
add_index "spree_variants", ["product_id"], :name => "index_variants_on_product_id"
|
568
|
+
|
569
|
+
create_table "spree_zone_members", :force => true do |t|
|
570
|
+
t.integer "zoneable_id"
|
571
|
+
t.string "zoneable_type"
|
572
|
+
t.integer "zone_id"
|
573
|
+
t.datetime "created_at", :null => false
|
574
|
+
t.datetime "updated_at", :null => false
|
575
|
+
end
|
576
|
+
|
577
|
+
create_table "spree_zones", :force => true do |t|
|
578
|
+
t.string "name"
|
579
|
+
t.string "description"
|
580
|
+
t.datetime "created_at", :null => false
|
581
|
+
t.datetime "updated_at", :null => false
|
582
|
+
t.boolean "default_tax", :default => false
|
583
|
+
t.integer "zone_members_count", :default => 0
|
584
|
+
end
|
585
|
+
|
586
|
+
end
|