spree_purchase_order 3.6.0 → 3.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (286) hide show
  1. checksums.yaml +5 -5
  2. data/lib/spree_purchase_order/version.rb +1 -1
  3. data/spec/dummy/db/migrate/20191113195709_create_active_storage_tables.active_storage.rb +27 -0
  4. data/spec/dummy/db/migrate/{20180516181839_spree_one_two.spree.rb → 20191113195710_spree_one_two.spree.rb} +36 -36
  5. data/spec/dummy/db/migrate/{20180516181840_spree_promo_one_two.spree.rb → 20191113195711_spree_promo_one_two.spree.rb} +1 -1
  6. data/spec/dummy/db/migrate/{20180516181841_add_tax_rate_label.spree.rb → 20191113195712_add_tax_rate_label.spree.rb} +0 -0
  7. data/spec/dummy/db/migrate/{20180516181842_add_toggle_tax_rate_display.spree.rb → 20191113195713_add_toggle_tax_rate_display.spree.rb} +0 -0
  8. data/spec/dummy/db/migrate/{20180516181843_remove_unused_preference_columns.spree.rb → 20191113195714_remove_unused_preference_columns.spree.rb} +0 -0
  9. data/spec/dummy/db/migrate/{20180516181844_add_lock_version_to_variant.spree.rb → 20191113195715_add_lock_version_to_variant.spree.rb} +0 -0
  10. data/spec/dummy/db/migrate/{20180516181845_add_states_required_to_countries.spree.rb → 20191113195716_add_states_required_to_countries.spree.rb} +0 -0
  11. data/spec/dummy/db/migrate/{20180516181846_add_on_demand_to_product_and_variant.spree.rb → 20191113195717_add_on_demand_to_product_and_variant.spree.rb} +0 -0
  12. data/spec/dummy/db/migrate/{20180516181847_remove_not_null_constraint_from_products_on_hand.spree.rb → 20191113195718_remove_not_null_constraint_from_products_on_hand.spree.rb} +0 -0
  13. data/spec/dummy/db/migrate/{20180516181848_split_prices_from_variants.spree.rb → 20191113195719_split_prices_from_variants.spree.rb} +0 -0
  14. data/spec/dummy/db/migrate/{20180516181849_remove_not_null_from_spree_prices_amount.spree.rb → 20191113195720_remove_not_null_from_spree_prices_amount.spree.rb} +0 -0
  15. data/spec/dummy/db/migrate/{20180516181850_add_currency_to_line_items.spree.rb → 20191113195721_add_currency_to_line_items.spree.rb} +0 -0
  16. data/spec/dummy/db/migrate/{20180516181851_add_currency_to_orders.spree.rb → 20191113195722_add_currency_to_orders.spree.rb} +0 -0
  17. data/spec/dummy/db/migrate/{20180516181852_add_cost_currency_to_variants.spree.rb → 20191113195723_add_cost_currency_to_variants.spree.rb} +0 -0
  18. data/spec/dummy/db/migrate/{20180516181853_remove_display_on_from_payment_methods.spree.rb → 20191113195724_remove_display_on_from_payment_methods.spree.rb} +0 -0
  19. data/spec/dummy/db/migrate/{20180516181854_add_position_to_taxonomies.spree.rb → 20191113195725_add_position_to_taxonomies.spree.rb} +0 -0
  20. data/spec/dummy/db/migrate/{20180516181855_add_last_ip_to_spree_orders.spree.rb → 20191113195726_add_last_ip_to_spree_orders.spree.rb} +0 -0
  21. data/spec/dummy/db/migrate/{20180516181856_add_state_to_spree_adjustments.spree.rb → 20191113195727_add_state_to_spree_adjustments.spree.rb} +0 -0
  22. data/spec/dummy/db/migrate/{20180516181857_add_display_on_to_spree_payment_methods.spree.rb → 20191113195728_add_display_on_to_spree_payment_methods.spree.rb} +0 -0
  23. data/spec/dummy/db/migrate/{20180516181858_add_position_to_product_properties.spree.rb → 20191113195729_add_position_to_product_properties.spree.rb} +0 -0
  24. data/spec/dummy/db/migrate/{20180516181859_add_identifier_to_spree_payments.spree.rb → 20191113195730_add_identifier_to_spree_payments.spree.rb} +0 -0
  25. data/spec/dummy/db/migrate/{20180516181860_add_order_id_index_to_payments.spree.rb → 20191113195731_add_order_id_index_to_payments.spree.rb} +0 -0
  26. data/spec/dummy/db/migrate/{20180516181861_add_primary_to_spree_products_taxons.spree.rb → 20191113195732_add_primary_to_spree_products_taxons.spree.rb} +0 -0
  27. data/spec/dummy/db/migrate/{20180516181862_create_spree_stock_items.spree.rb → 20191113195733_create_spree_stock_items.spree.rb} +1 -1
  28. data/spec/dummy/db/migrate/{20180516181863_create_spree_stock_locations.spree.rb → 20191113195734_create_spree_stock_locations.spree.rb} +1 -1
  29. data/spec/dummy/db/migrate/{20180516181864_create_default_stock.spree.rb → 20191113195735_create_default_stock.spree.rb} +0 -0
  30. data/spec/dummy/db/migrate/{20180516181865_add_order_id_index_to_shipments.spree.rb → 20191113195736_add_order_id_index_to_shipments.spree.rb} +0 -0
  31. data/spec/dummy/db/migrate/{20180516181866_change_meta_description_on_spree_products_to_text.spree.rb → 20191113195737_change_meta_description_on_spree_products_to_text.spree.rb} +0 -0
  32. data/spec/dummy/db/migrate/{20180516181867_add_stock_location_id_to_spree_shipments.spree.rb → 20191113195738_add_stock_location_id_to_spree_shipments.spree.rb} +0 -0
  33. data/spec/dummy/db/migrate/{20180516181868_add_pending_to_inventory_unit.spree.rb → 20191113195739_add_pending_to_inventory_unit.spree.rb} +0 -0
  34. data/spec/dummy/db/migrate/{20180516181869_remove_on_demand_from_product_and_variant.spree.rb → 20191113195740_remove_on_demand_from_product_and_variant.spree.rb} +0 -0
  35. data/spec/dummy/db/migrate/{20180516181870_create_shipping_method_zone.spree.rb → 20191113195741_create_shipping_method_zone.spree.rb} +0 -0
  36. data/spec/dummy/db/migrate/{20180516181871_remove_shipping_category_id_from_shipping_method.spree.rb → 20191113195742_remove_shipping_category_id_from_shipping_method.spree.rb} +0 -0
  37. data/spec/dummy/db/migrate/{20180516181872_create_shipping_method_categories.spree.rb → 20191113195743_create_shipping_method_categories.spree.rb} +1 -1
  38. data/spec/dummy/db/migrate/{20180516181873_add_tracking_url_to_spree_shipping_methods.spree.rb → 20191113195744_add_tracking_url_to_spree_shipping_methods.spree.rb} +0 -0
  39. data/spec/dummy/db/migrate/{20180516181874_create_spree_shipping_rates.spree.rb → 20191113195745_create_spree_shipping_rates.spree.rb} +1 -1
  40. data/spec/dummy/db/migrate/{20180516181875_remove_category_match_attributes_from_shipping_method.spree.rb → 20191113195746_remove_category_match_attributes_from_shipping_method.spree.rb} +0 -0
  41. data/spec/dummy/db/migrate/{20180516181876_create_stock_movements.spree.rb → 20191113195747_create_stock_movements.spree.rb} +1 -1
  42. data/spec/dummy/db/migrate/{20180516181877_add_address_fields_to_stock_location.spree.rb → 20191113195748_add_address_fields_to_stock_location.spree.rb} +0 -0
  43. data/spec/dummy/db/migrate/{20180516181878_add_active_field_to_stock_locations.spree.rb → 20191113195749_add_active_field_to_stock_locations.spree.rb} +0 -0
  44. data/spec/dummy/db/migrate/{20180516181879_add_backorderable_to_stock_item.spree.rb → 20191113195750_add_backorderable_to_stock_item.spree.rb} +0 -0
  45. data/spec/dummy/db/migrate/{20180516181880_add_default_quantity_to_stock_movement.spree.rb → 20191113195751_add_default_quantity_to_stock_movement.spree.rb} +0 -0
  46. data/spec/dummy/db/migrate/{20180516181881_add_source_and_destination_to_stock_movements.spree.rb → 20191113195752_add_source_and_destination_to_stock_movements.spree.rb} +0 -0
  47. data/spec/dummy/db/migrate/{20180516181882_change_orders_total_precision.spree.rb → 20191113195753_change_orders_total_precision.spree.rb} +0 -0
  48. data/spec/dummy/db/migrate/{20180516181883_change_spree_payments_amount_precision.spree.rb → 20191113195754_change_spree_payments_amount_precision.spree.rb} +0 -0
  49. data/spec/dummy/db/migrate/{20180516181884_change_spree_return_authorization_amount_precision.spree.rb → 20191113195755_change_spree_return_authorization_amount_precision.spree.rb} +0 -0
  50. data/spec/dummy/db/migrate/{20180516181885_change_adjustments_amount_precision.spree.rb → 20191113195756_change_adjustments_amount_precision.spree.rb} +0 -0
  51. data/spec/dummy/db/migrate/{20180516181886_add_originator_to_stock_movement.spree.rb → 20191113195757_add_originator_to_stock_movement.spree.rb} +0 -0
  52. data/spec/dummy/db/migrate/{20180516181887_drop_source_and_destination_from_stock_movement.spree.rb → 20191113195758_drop_source_and_destination_from_stock_movement.spree.rb} +0 -0
  53. data/spec/dummy/db/migrate/{20180516181888_migrate_inventory_unit_sold_to_on_hand.spree.rb → 20191113195759_migrate_inventory_unit_sold_to_on_hand.spree.rb} +0 -0
  54. data/spec/dummy/db/migrate/{20180516181889_add_stock_location_to_rma.spree.rb → 20191113195760_add_stock_location_to_rma.spree.rb} +0 -0
  55. data/spec/dummy/db/migrate/{20180516181890_update_shipment_state_for_canceled_orders.spree.rb → 20191113195761_update_shipment_state_for_canceled_orders.spree.rb} +0 -0
  56. data/spec/dummy/db/migrate/{20180516181891_add_seo_metas_to_taxons.spree.rb → 20191113195762_add_seo_metas_to_taxons.spree.rb} +0 -0
  57. data/spec/dummy/db/migrate/{20180516181892_remove_stock_item_and_variant_lock.spree.rb → 20191113195763_remove_stock_item_and_variant_lock.spree.rb} +0 -0
  58. data/spec/dummy/db/migrate/{20180516181893_add_name_to_spree_credit_cards.spree.rb → 20191113195764_add_name_to_spree_credit_cards.spree.rb} +0 -0
  59. data/spec/dummy/db/migrate/{20180516181894_update_name_fields_on_spree_credit_cards.spree.rb → 20191113195765_update_name_fields_on_spree_credit_cards.spree.rb} +0 -0
  60. data/spec/dummy/db/migrate/{20180516181895_add_index_to_source_columns_on_adjustments.spree.rb → 20191113195766_add_index_to_source_columns_on_adjustments.spree.rb} +0 -0
  61. data/spec/dummy/db/migrate/{20180516181896_update_adjustment_states.spree.rb → 20191113195767_update_adjustment_states.spree.rb} +0 -0
  62. data/spec/dummy/db/migrate/{20180516181897_add_shipping_rates_to_shipments.spree.rb → 20191113195768_add_shipping_rates_to_shipments.spree.rb} +0 -0
  63. data/spec/dummy/db/migrate/{20180516181898_create_spree_stock_transfers.spree.rb → 20191113195769_create_spree_stock_transfers.spree.rb} +1 -1
  64. data/spec/dummy/db/migrate/{20180516181899_drop_products_count_on_hand.spree.rb → 20191113195770_drop_products_count_on_hand.spree.rb} +0 -0
  65. data/spec/dummy/db/migrate/{20180516181900_set_default_shipping_rate_cost.spree.rb → 20191113195771_set_default_shipping_rate_cost.spree.rb} +0 -0
  66. data/spec/dummy/db/migrate/{20180516181901_add_number_to_stock_transfer.spree.rb → 20191113195772_add_number_to_stock_transfer.spree.rb} +0 -0
  67. data/spec/dummy/db/migrate/{20180516181902_add_sku_index_to_spree_variants.spree.rb → 20191113195773_add_sku_index_to_spree_variants.spree.rb} +0 -0
  68. data/spec/dummy/db/migrate/{20180516181903_add_backorderable_default_to_spree_stock_location.spree.rb → 20191113195774_add_backorderable_default_to_spree_stock_location.spree.rb} +0 -0
  69. data/spec/dummy/db/migrate/{20180516181904_add_propage_all_variants_to_spree_stock_location.spree.rb → 20191113195775_add_propage_all_variants_to_spree_stock_location.spree.rb} +0 -0
  70. data/spec/dummy/db/migrate/{20180516181905_rename_shipping_methods_zones_to_spree_shipping_methods_zones.spree.rb → 20191113195776_rename_shipping_methods_zones_to_spree_shipping_methods_zones.spree.rb} +0 -0
  71. data/spec/dummy/db/migrate/{20180516181906_add_user_id_index_to_spree_orders.spree.rb → 20191113195777_add_user_id_index_to_spree_orders.spree.rb} +0 -0
  72. data/spec/dummy/db/migrate/{20180516181907_add_updated_at_to_spree_countries.spree.rb → 20191113195778_add_updated_at_to_spree_countries.spree.rb} +0 -0
  73. data/spec/dummy/db/migrate/{20180516181908_add_updated_at_to_spree_states.spree.rb → 20191113195779_add_updated_at_to_spree_states.spree.rb} +0 -0
  74. data/spec/dummy/db/migrate/{20180516181909_add_cvv_result_code_and_cvv_result_message_to_spree_payments.spree.rb → 20191113195780_add_cvv_result_code_and_cvv_result_message_to_spree_payments.spree.rb} +0 -0
  75. data/spec/dummy/db/migrate/{20180516181910_add_unique_index_to_permalink_on_spree_products.spree.rb → 20191113195781_add_unique_index_to_permalink_on_spree_products.spree.rb} +0 -0
  76. data/spec/dummy/db/migrate/{20180516181911_add_unique_index_to_orders_shipments_and_stock_transfers.spree.rb → 20191113195782_add_unique_index_to_orders_shipments_and_stock_transfers.spree.rb} +0 -0
  77. data/spec/dummy/db/migrate/{20180516181912_add_deleted_at_to_spree_tax_rates.spree.rb → 20191113195783_add_deleted_at_to_spree_tax_rates.spree.rb} +0 -0
  78. data/spec/dummy/db/migrate/{20180516181913_remove_lock_version_from_inventory_units.spree.rb → 20191113195784_remove_lock_version_from_inventory_units.spree.rb} +0 -0
  79. data/spec/dummy/db/migrate/{20180516181914_add_cost_price_to_line_item.spree.rb → 20191113195785_add_cost_price_to_line_item.spree.rb} +0 -0
  80. data/spec/dummy/db/migrate/{20180516181915_set_backorderable_to_default_to_false.spree.rb → 20191113195786_set_backorderable_to_default_to_false.spree.rb} +0 -0
  81. data/spec/dummy/db/migrate/{20180516181916_add_created_by_id_to_spree_orders.spree.rb → 20191113195787_add_created_by_id_to_spree_orders.spree.rb} +0 -0
  82. data/spec/dummy/db/migrate/{20180516181917_index_completed_at_on_spree_orders.spree.rb → 20191113195788_index_completed_at_on_spree_orders.spree.rb} +0 -0
  83. data/spec/dummy/db/migrate/{20180516181918_add_tax_category_id_to_spree_line_items.spree.rb → 20191113195789_add_tax_category_id_to_spree_line_items.spree.rb} +0 -0
  84. data/spec/dummy/db/migrate/{20180516181919_migrate_tax_categories_to_line_items.spree.rb → 20191113195790_migrate_tax_categories_to_line_items.spree.rb} +0 -0
  85. data/spec/dummy/db/migrate/{20180516181920_drop_spree_mail_methods.spree.rb → 20191113195791_drop_spree_mail_methods.spree.rb} +0 -0
  86. data/spec/dummy/db/migrate/{20180516181921_set_default_stock_location_on_shipments.spree.rb → 20191113195792_set_default_stock_location_on_shipments.spree.rb} +0 -0
  87. data/spec/dummy/db/migrate/{20180516181922_upgrade_adjustments.spree.rb → 20191113195793_upgrade_adjustments.spree.rb} +6 -0
  88. data/spec/dummy/db/migrate/{20180516181923_rename_adjustment_fields.spree.rb → 20191113195794_rename_adjustment_fields.spree.rb} +6 -0
  89. data/spec/dummy/db/migrate/{20180516181924_add_admin_name_column_to_spree_shipping_methods.spree.rb → 20191113195795_add_admin_name_column_to_spree_shipping_methods.spree.rb} +0 -0
  90. data/spec/dummy/db/migrate/{20180516181925_add_admin_name_column_to_spree_stock_locations.spree.rb → 20191113195796_add_admin_name_column_to_spree_stock_locations.spree.rb} +0 -0
  91. data/spec/dummy/db/migrate/{20180516181926_add_shipment_total_to_spree_orders.spree.rb → 20191113195797_add_shipment_total_to_spree_orders.spree.rb} +0 -0
  92. data/spec/dummy/db/migrate/{20180516181927_expand_order_number_size.spree.rb → 20191113195798_expand_order_number_size.spree.rb} +0 -0
  93. data/spec/dummy/db/migrate/{20180516181928_rename_activators_to_promotions.spree.rb → 20191113195799_rename_activators_to_promotions.spree.rb} +0 -0
  94. data/spec/dummy/db/migrate/{20180516181929_add_adjustment_total_to_line_items.spree.rb → 20191113195800_add_adjustment_total_to_line_items.spree.rb} +0 -0
  95. data/spec/dummy/db/migrate/{20180516181930_add_adjustment_total_to_shipments.spree.rb → 20191113195801_add_adjustment_total_to_shipments.spree.rb} +0 -0
  96. data/spec/dummy/db/migrate/{20180516181931_add_depth_to_spree_taxons.spree.rb → 20191113195802_add_depth_to_spree_taxons.spree.rb} +0 -0
  97. data/spec/dummy/db/migrate/{20180516181932_add_tax_total_to_line_items_shipments_and_orders.spree.rb → 20191113195803_add_tax_total_to_line_items_shipments_and_orders.spree.rb} +0 -0
  98. data/spec/dummy/db/migrate/{20180516181933_add_shipping_category_to_shipping_methods_and_products.spree.rb → 20191113195804_add_shipping_category_to_shipping_methods_and_products.spree.rb} +0 -0
  99. data/spec/dummy/db/migrate/{20180516181934_migrate_old_shipping_calculators.spree.rb → 20191113195805_migrate_old_shipping_calculators.spree.rb} +0 -0
  100. data/spec/dummy/db/migrate/{20180516181935_add_code_to_spree_promotion_rules.spree.rb → 20191113195806_add_code_to_spree_promotion_rules.spree.rb} +0 -0
  101. data/spec/dummy/db/migrate/{20180516181936_change_states_required_for_countries.spree.rb → 20191113195807_change_states_required_for_countries.spree.rb} +0 -0
  102. data/spec/dummy/db/migrate/{20180516181937_add_deleted_at_to_spree_stock_items.spree.rb → 20191113195808_add_deleted_at_to_spree_stock_items.spree.rb} +0 -0
  103. data/spec/dummy/db/migrate/{20180516181938_remove_promotions_event_name_field.spree.rb → 20191113195809_remove_promotions_event_name_field.spree.rb} +0 -0
  104. data/spec/dummy/db/migrate/{20180516181939_add_promo_total_to_line_items_and_shipments_and_orders.spree.rb → 20191113195810_add_promo_total_to_line_items_and_shipments_and_orders.spree.rb} +0 -0
  105. data/spec/dummy/db/migrate/{20180516181940_remove_unused_credit_card_fields.spree.rb → 20191113195811_remove_unused_credit_card_fields.spree.rb} +0 -0
  106. data/spec/dummy/db/migrate/{20180516181941_add_track_inventory_to_variant.spree.rb → 20191113195812_add_track_inventory_to_variant.spree.rb} +0 -0
  107. data/spec/dummy/db/migrate/{20180516181942_add_tax_category_to_variants.spree.rb → 20191113195813_add_tax_category_to_variants.spree.rb} +0 -0
  108. data/spec/dummy/db/migrate/{20180516181943_add_channel_to_spree_orders.spree.rb → 20191113195814_add_channel_to_spree_orders.spree.rb} +0 -0
  109. data/spec/dummy/db/migrate/{20180516181944_add_included_to_adjustments.spree.rb → 20191113195815_add_included_to_adjustments.spree.rb} +0 -0
  110. data/spec/dummy/db/migrate/{20180516181945_rename_tax_total_fields.spree.rb → 20191113195816_rename_tax_total_fields.spree.rb} +0 -0
  111. data/spec/dummy/db/migrate/{20180516181946_add_line_item_id_to_spree_inventory_units.spree.rb → 20191113195817_add_line_item_id_to_spree_inventory_units.spree.rb} +0 -0
  112. data/spec/dummy/db/migrate/{20180516181947_add_updated_at_to_variants.spree.rb → 20191113195818_add_updated_at_to_variants.spree.rb} +0 -0
  113. data/spec/dummy/db/migrate/{20180516181948_add_position_to_classifications.spree.rb → 20191113195819_add_position_to_classifications.spree.rb} +0 -0
  114. data/spec/dummy/db/migrate/{20180516181949_create_spree_orders_promotions.spree.rb → 20191113195820_create_spree_orders_promotions.spree.rb} +0 -0
  115. data/spec/dummy/db/migrate/{20180516181950_unique_shipping_method_categories.spree.rb → 20191113195821_unique_shipping_method_categories.spree.rb} +0 -0
  116. data/spec/dummy/db/migrate/{20180516181951_add_item_count_to_spree_orders.spree.rb → 20191113195822_add_item_count_to_spree_orders.spree.rb} +0 -0
  117. data/spec/dummy/db/migrate/{20180516181952_remove_value_type_from_spree_preferences.spree.rb → 20191113195823_remove_value_type_from_spree_preferences.spree.rb} +0 -0
  118. data/spec/dummy/db/migrate/{20180516181953_rename_permalink_to_slug_for_products.spree.rb → 20191113195824_rename_permalink_to_slug_for_products.spree.rb} +0 -0
  119. data/spec/dummy/db/migrate/{20180516181954_add_index_to_variant_id_and_currency_on_prices.spree.rb → 20191113195825_add_index_to_variant_id_and_currency_on_prices.spree.rb} +0 -0
  120. data/spec/dummy/db/migrate/{20180516181955_rename_activator_id_in_rules_and_actions_to_promotion_id.spree.rb → 20191113195826_rename_activator_id_in_rules_and_actions_to_promotion_id.spree.rb} +0 -0
  121. data/spec/dummy/db/migrate/{20180516181956_add_deleted_at_to_spree_prices.spree.rb → 20191113195827_add_deleted_at_to_spree_prices.spree.rb} +0 -0
  122. data/spec/dummy/db/migrate/{20180516181957_add_approver_id_and_approved_at_to_orders.spree.rb → 20191113195828_add_approver_id_and_approved_at_to_orders.spree.rb} +0 -0
  123. data/spec/dummy/db/migrate/{20180516181958_add_confirmation_delivered_to_spree_orders.spree.rb → 20191113195829_add_confirmation_delivered_to_spree_orders.spree.rb} +0 -0
  124. data/spec/dummy/db/migrate/{20180516181959_add_auto_capture_to_payment_methods.spree.rb → 20191113195830_add_auto_capture_to_payment_methods.spree.rb} +0 -0
  125. data/spec/dummy/db/migrate/{20180516181960_create_spree_payment_capture_events.spree.rb → 20191113195831_create_spree_payment_capture_events.spree.rb} +1 -1
  126. data/spec/dummy/db/migrate/{20180516181961_add_uncaptured_amount_to_payments.spree.rb → 20191113195832_add_uncaptured_amount_to_payments.spree.rb} +0 -0
  127. data/spec/dummy/db/migrate/{20180516181962_default_variant_weight_to_zero.spree.rb → 20191113195833_default_variant_weight_to_zero.spree.rb} +0 -0
  128. data/spec/dummy/db/migrate/{20180516181963_add_tax_category_id_to_shipping_methods.spree.rb → 20191113195834_add_tax_category_id_to_shipping_methods.spree.rb} +0 -0
  129. data/spec/dummy/db/migrate/{20180516181964_add_tax_rate_id_to_shipping_rates.spree.rb → 20191113195835_add_tax_rate_id_to_shipping_rates.spree.rb} +0 -0
  130. data/spec/dummy/db/migrate/{20180516181965_add_pre_tax_amount_to_line_items_and_shipments.spree.rb → 20191113195836_add_pre_tax_amount_to_line_items_and_shipments.spree.rb} +0 -0
  131. data/spec/dummy/db/migrate/{20180516181966_add_more_indexes.spree.rb → 20191113195837_add_more_indexes.spree.rb} +0 -0
  132. data/spec/dummy/db/migrate/{20180516181967_add_considered_risky_to_orders.spree.rb → 20191113195838_add_considered_risky_to_orders.spree.rb} +0 -0
  133. data/spec/dummy/db/migrate/{20180516181968_add_preference_store_to_everything.spree.rb → 20191113195839_add_preference_store_to_everything.spree.rb} +0 -0
  134. data/spec/dummy/db/migrate/{20180516181969_add_user_id_to_spree_credit_cards.spree.rb → 20191113195840_add_user_id_to_spree_credit_cards.spree.rb} +0 -0
  135. data/spec/dummy/db/migrate/{20180516181970_migrate_old_preferences.spree.rb → 20191113195841_migrate_old_preferences.spree.rb} +5 -1
  136. data/spec/dummy/db/migrate/{20180516181971_create_spree_stores.spree.rb → 20191113195842_create_spree_stores.spree.rb} +1 -1
  137. data/spec/dummy/db/migrate/{20180516181972_create_store_from_preferences.spree.rb → 20191113195843_create_store_from_preferences.spree.rb} +0 -0
  138. data/spec/dummy/db/migrate/{20180516181973_add_timestamps_to_spree_assets.spree.rb → 20191113195844_add_timestamps_to_spree_assets.spree.rb} +0 -0
  139. data/spec/dummy/db/migrate/{20180516181974_create_spree_taxons_promotion_rules.spree.rb → 20191113195845_create_spree_taxons_promotion_rules.spree.rb} +0 -0
  140. data/spec/dummy/db/migrate/{20180516181975_add_additional_store_fields.spree.rb → 20191113195846_add_additional_store_fields.spree.rb} +0 -0
  141. data/spec/dummy/db/migrate/{20180516181976_add_many_missing_indexes.spree.rb → 20191113195847_add_many_missing_indexes.spree.rb} +0 -0
  142. data/spec/dummy/db/migrate/{20180516181977_correct_some_polymorphic_index_and_add_more_missing.spree.rb → 20191113195848_correct_some_polymorphic_index_and_add_more_missing.spree.rb} +0 -0
  143. data/spec/dummy/db/migrate/{20180516181978_add_user_id_created_by_id_index_to_order.spree.rb → 20191113195849_add_user_id_created_by_id_index_to_order.spree.rb} +0 -0
  144. data/spec/dummy/db/migrate/{20180516181979_change_spree_price_amount_precision.spree.rb → 20191113195850_change_spree_price_amount_precision.spree.rb} +0 -0
  145. data/spec/dummy/db/migrate/{20180516181980_add_token_to_spree_orders.spree.rb → 20191113195851_add_token_to_spree_orders.spree.rb} +0 -0
  146. data/spec/dummy/db/migrate/{20180516181981_move_order_token_from_tokenized_permission.spree.rb → 20191113195852_move_order_token_from_tokenized_permission.spree.rb} +0 -0
  147. data/spec/dummy/db/migrate/{20180516181982_set_shipment_total_for_users_upgrading.spree.rb → 20191113195853_set_shipment_total_for_users_upgrading.spree.rb} +0 -0
  148. data/spec/dummy/db/migrate/{20180516181983_drop_credit_card_first_name_and_last_name.spree.rb → 20191113195854_drop_credit_card_first_name_and_last_name.spree.rb} +0 -0
  149. data/spec/dummy/db/migrate/{20180516181984_add_deleted_at_to_spree_promotion_actions.spree.rb → 20191113195855_add_deleted_at_to_spree_promotion_actions.spree.rb} +0 -0
  150. data/spec/dummy/db/migrate/{20180516181985_remove_uncaptured_amount_from_spree_payments.spree.rb → 20191113195856_remove_uncaptured_amount_from_spree_payments.spree.rb} +0 -0
  151. data/spec/dummy/db/migrate/{20180516181986_create_spree_refunds.spree.rb → 20191113195857_create_spree_refunds.spree.rb} +1 -1
  152. data/spec/dummy/db/migrate/{20180516181987_create_spree_return_authorization_inventory_unit.spree.rb → 20191113195858_create_spree_return_authorization_inventory_unit.spree.rb} +1 -1
  153. data/spec/dummy/db/migrate/{20180516181988_rename_return_authorization_inventory_unit_to_return_items.spree.rb → 20191113195859_rename_return_authorization_inventory_unit_to_return_items.spree.rb} +0 -0
  154. data/spec/dummy/db/migrate/{20180516181989_backfill_line_item_pre_tax_amount.spree.rb → 20191113195860_backfill_line_item_pre_tax_amount.spree.rb} +0 -0
  155. data/spec/dummy/db/migrate/{20180516181990_recreate_spree_return_authorizations.spree.rb → 20191113195861_recreate_spree_return_authorizations.spree.rb} +0 -0
  156. data/spec/dummy/db/migrate/{20180516181991_add_amount_fields_to_return_items.spree.rb → 20191113195862_add_amount_fields_to_return_items.spree.rb} +0 -0
  157. data/spec/dummy/db/migrate/{20180516181992_drop_return_authorization_amount.spree.rb → 20191113195863_drop_return_authorization_amount.spree.rb} +0 -0
  158. data/spec/dummy/db/migrate/{20180516181993_create_spree_return_authorization_reasons.spree.rb → 20191113195864_create_spree_return_authorization_reasons.spree.rb} +1 -1
  159. data/spec/dummy/db/migrate/{20180516181994_create_spree_refund_reasons.spree.rb → 20191113195865_create_spree_refund_reasons.spree.rb} +1 -1
  160. data/spec/dummy/db/migrate/{20180516181995_rename_return_authorization_reason.spree.rb → 20191113195866_rename_return_authorization_reason.spree.rb} +0 -0
  161. data/spec/dummy/db/migrate/{20180516181996_create_spree_promotion_categories.spree.rb → 20191113195867_create_spree_promotion_categories.spree.rb} +1 -1
  162. data/spec/dummy/db/migrate/{20180516181997_drop_received_at_on_return_items.spree.rb → 20191113195868_drop_received_at_on_return_items.spree.rb} +0 -0
  163. data/spec/dummy/db/migrate/{20180516181998_add_reception_and_acceptance_status_to_return_items.spree.rb → 20191113195869_add_reception_and_acceptance_status_to_return_items.spree.rb} +0 -0
  164. data/spec/dummy/db/migrate/{20180516181999_create_default_refund_reason.spree.rb → 20191113195870_create_default_refund_reason.spree.rb} +0 -0
  165. data/spec/dummy/db/migrate/{20180516182000_add_default_to_spree_stock_locations.spree.rb → 20191113195871_add_default_to_spree_stock_locations.spree.rb} +0 -0
  166. data/spec/dummy/db/migrate/{20180516182001_create_spree_customer_returns.spree.rb → 20191113195872_create_spree_customer_returns.spree.rb} +1 -1
  167. data/spec/dummy/db/migrate/{20180516182002_add_customer_return_id_to_return_item.spree.rb → 20191113195873_add_customer_return_id_to_return_item.spree.rb} +0 -0
  168. data/spec/dummy/db/migrate/{20180516182003_create_friendly_id_slugs.spree.rb → 20191113195874_create_friendly_id_slugs.spree.rb} +0 -0
  169. data/spec/dummy/db/migrate/{20180516182004_rename_spree_refund_return_authorization_id.spree.rb → 20191113195875_rename_spree_refund_return_authorization_id.spree.rb} +0 -0
  170. data/spec/dummy/db/migrate/{20180516182005_increase_return_item_pre_tax_amount_precision.spree.rb → 20191113195876_increase_return_item_pre_tax_amount_precision.spree.rb} +0 -0
  171. data/spec/dummy/db/migrate/{20180516182006_copy_product_slugs_to_slug_history.spree.rb → 20191113195877_copy_product_slugs_to_slug_history.spree.rb} +0 -0
  172. data/spec/dummy/db/migrate/{20180516182007_create_spree_reimbursements.spree.rb → 20191113195878_create_spree_reimbursements.spree.rb} +1 -1
  173. data/spec/dummy/db/migrate/{20180516182008_add_promotionable_to_spree_products.spree.rb → 20191113195879_add_promotionable_to_spree_products.spree.rb} +0 -0
  174. data/spec/dummy/db/migrate/{20180516182009_add_exchange_inventory_unit_foreign_keys.spree.rb → 20191113195880_add_exchange_inventory_unit_foreign_keys.spree.rb} +0 -0
  175. data/spec/dummy/db/migrate/{20180516182010_add_acceptance_status_errors_to_return_item.spree.rb → 20191113195881_add_acceptance_status_errors_to_return_item.spree.rb} +0 -0
  176. data/spec/dummy/db/migrate/{20180516182011_create_spree_reimbursement_types.spree.rb → 20191113195882_create_spree_reimbursement_types.spree.rb} +1 -1
  177. data/spec/dummy/db/migrate/{20180516182012_add_default_to_shipment_cost.spree.rb → 20191113195883_add_default_to_shipment_cost.spree.rb} +0 -0
  178. data/spec/dummy/db/migrate/{20180516182013_add_default_to_spree_credit_cards.spree.rb → 20191113195884_add_default_to_spree_credit_cards.spree.rb} +0 -0
  179. data/spec/dummy/db/migrate/{20180516182014_make_existing_credit_cards_default.spree.rb → 20191113195885_make_existing_credit_cards_default.spree.rb} +0 -0
  180. data/spec/dummy/db/migrate/{20180516182015_add_type_to_reimbursement_type.spree.rb → 20191113195886_add_type_to_reimbursement_type.spree.rb} +0 -0
  181. data/spec/dummy/db/migrate/{20180516182016_create_spree_reimbursement_credits.spree.rb → 20191113195887_create_spree_reimbursement_credits.spree.rb} +0 -0
  182. data/spec/dummy/db/migrate/{20180516182017_add_meta_title_to_spree_products.spree.rb → 20191113195888_add_meta_title_to_spree_products.spree.rb} +0 -0
  183. data/spec/dummy/db/migrate/{20180516182018_add_kind_to_zone.spree.rb → 20191113195889_add_kind_to_zone.spree.rb} +0 -0
  184. data/spec/dummy/db/migrate/{20180516182019_add_code_to_spree_tax_categories.spree.rb → 20191113195890_add_code_to_spree_tax_categories.spree.rb} +0 -0
  185. data/spec/dummy/db/migrate/{20180516182020_default_pre_tax_amount_should_be_zero.spree.rb → 20191113195891_default_pre_tax_amount_should_be_zero.spree.rb} +0 -0
  186. data/spec/dummy/db/migrate/{20180516182021_add_code_to_spree_shipping_methods.spree.rb → 20191113195892_add_code_to_spree_shipping_methods.spree.rb} +0 -0
  187. data/spec/dummy/db/migrate/{20180516182022_add_cancel_audit_fields_to_spree_orders.spree.rb → 20191113195893_add_cancel_audit_fields_to_spree_orders.spree.rb} +0 -0
  188. data/spec/dummy/db/migrate/{20180516182023_add_store_id_to_orders.spree.rb → 20191113195894_add_store_id_to_orders.spree.rb} +0 -0
  189. data/spec/dummy/db/migrate/{20180516182024_create_spree_taxons_prototypes.spree.rb → 20191113195895_create_spree_taxons_prototypes.spree.rb} +0 -0
  190. data/spec/dummy/db/migrate/{20180516182025_add_state_lock_version_to_order.spree.rb → 20191113195896_add_state_lock_version_to_order.spree.rb} +0 -0
  191. data/spec/dummy/db/migrate/{20180516182026_add_counter_cache_from_spree_variants_to_spree_stock_items.spree.rb → 20191113195897_add_counter_cache_from_spree_variants_to_spree_stock_items.spree.rb} +0 -0
  192. data/spec/dummy/db/migrate/{20180516182027_fix_adjustment_order_presence.spree.rb → 20191113195898_fix_adjustment_order_presence.spree.rb} +0 -0
  193. data/spec/dummy/db/migrate/{20180516182028_update_classifications_positions.spree.rb → 20191113195899_update_classifications_positions.spree.rb} +0 -0
  194. data/spec/dummy/db/migrate/{20180516182029_add_guest_token_index_to_spree_orders.spree.rb → 20191113195900_add_guest_token_index_to_spree_orders.spree.rb} +0 -0
  195. data/spec/dummy/db/migrate/{20180516182030_remove_token_permissions_table.spree.rb → 20191113195901_remove_token_permissions_table.spree.rb} +0 -0
  196. data/spec/dummy/db/migrate/{20180516182031_remove_extra_products_slug_index.spree.rb → 20191113195902_remove_extra_products_slug_index.spree.rb} +0 -0
  197. data/spec/dummy/db/migrate/{20180516182032_update_product_slug_index.spree.rb → 20191113195903_update_product_slug_index.spree.rb} +0 -0
  198. data/spec/dummy/db/migrate/{20180516182033_rename_identifier_to_number_for_payment.spree.rb → 20191113195904_rename_identifier_to_number_for_payment.spree.rb} +0 -0
  199. data/spec/dummy/db/migrate/{20180516182034_create_spree_store_credits.spree.rb → 20191113195905_create_spree_store_credits.spree.rb} +1 -1
  200. data/spec/dummy/db/migrate/{20180516182035_create_spree_store_credit_categories.spree.rb → 20191113195906_create_spree_store_credit_categories.spree.rb} +1 -1
  201. data/spec/dummy/db/migrate/{20180516182036_create_spree_store_credit_events.spree.rb → 20191113195907_create_spree_store_credit_events.spree.rb} +1 -1
  202. data/spec/dummy/db/migrate/{20180516182037_create_spree_store_credit_types.spree.rb → 20191113195908_create_spree_store_credit_types.spree.rb} +1 -1
  203. data/spec/dummy/db/migrate/{20180516182038_remove_environment_from_payment_method.spree.rb → 20191113195909_remove_environment_from_payment_method.spree.rb} +0 -0
  204. data/spec/dummy/db/migrate/{20180516182039_add_resellable_to_return_items.spree.rb → 20191113195910_add_resellable_to_return_items.spree.rb} +0 -0
  205. data/spec/dummy/db/migrate/{20180516182040_add_code_to_spree_promotion_categories.spree.rb → 20191113195911_add_code_to_spree_promotion_categories.spree.rb} +0 -0
  206. data/spec/dummy/db/migrate/{20180516182041_remove_environment_from_tracker.spree.rb → 20191113195912_remove_environment_from_tracker.spree.rb} +2 -0
  207. data/spec/dummy/db/migrate/{20180516182042_remove_spree_configurations.spree.rb → 20191113195913_remove_spree_configurations.spree.rb} +0 -0
  208. data/spec/dummy/db/migrate/{20180516182043_add_index_to_spree_stock_items_variant_id.spree.rb → 20191113195914_add_index_to_spree_stock_items_variant_id.spree.rb} +0 -0
  209. data/spec/dummy/db/migrate/{20180516182044_ensure_payments_have_numbers.spree.rb → 20191113195915_ensure_payments_have_numbers.spree.rb} +6 -2
  210. data/spec/dummy/db/migrate/{20180516182045_add_missing_indexes_on_spree_tables.spree.rb → 20191113195916_add_missing_indexes_on_spree_tables.spree.rb} +0 -0
  211. data/spec/dummy/db/migrate/{20180516182046_remove_duplicated_indexes_from_multi_columns.spree.rb → 20191113195917_remove_duplicated_indexes_from_multi_columns.spree.rb} +0 -0
  212. data/spec/dummy/db/migrate/{20180516182047_remove_user_index_from_spree_state_changes.spree.rb → 20191113195918_remove_user_index_from_spree_state_changes.spree.rb} +0 -0
  213. data/spec/dummy/db/migrate/{20180516182048_fix_adjustment_order_id.spree.rb → 20191113195919_fix_adjustment_order_id.spree.rb} +0 -0
  214. data/spec/dummy/db/migrate/{20180516182049_add_position_to_spree_payment_methods.spree.rb → 20191113195920_add_position_to_spree_payment_methods.spree.rb} +0 -0
  215. data/spec/dummy/db/migrate/{20180516182050_add_deleted_at_to_friendly_id_slugs.spree.rb → 20191113195921_add_deleted_at_to_friendly_id_slugs.spree.rb} +0 -0
  216. data/spec/dummy/db/migrate/{20180516182051_increase_scale_on_pre_tax_amounts.spree.rb → 20191113195922_increase_scale_on_pre_tax_amounts.spree.rb} +0 -0
  217. data/spec/dummy/db/migrate/{20180516182052_add_taxable_adjustment_total_to_line_item.spree.rb → 20191113195923_add_taxable_adjustment_total_to_line_item.spree.rb} +0 -0
  218. data/spec/dummy/db/migrate/{20180516182053_migrate_payment_methods_display.spree.rb → 20191113195924_migrate_payment_methods_display.spree.rb} +0 -0
  219. data/spec/dummy/db/migrate/{20180516182054_enable_acts_as_paranoid_on_calculators.spree.rb → 20191113195925_enable_acts_as_paranoid_on_calculators.spree.rb} +0 -0
  220. data/spec/dummy/db/migrate/{20180516182055_spree_payment_method_store_credits.spree.rb → 20191113195926_spree_payment_method_store_credits.spree.rb} +0 -0
  221. data/spec/dummy/db/migrate/{20180516182056_rename_has_and_belongs_to_associations_to_model_names.spree.rb → 20191113195927_rename_has_and_belongs_to_associations_to_model_names.spree.rb} +0 -0
  222. data/spec/dummy/db/migrate/{20180516182057_spree_store_credit_types.spree.rb → 20191113195928_spree_store_credit_types.spree.rb} +0 -0
  223. data/spec/dummy/db/migrate/{20180516182058_add_discontinued_to_products_and_variants.spree.rb → 20191113195929_add_discontinued_to_products_and_variants.spree.rb} +0 -0
  224. data/spec/dummy/db/migrate/{20180516182059_remove_shipping_method_id_from_spree_orders.spree.rb → 20191113195930_remove_shipping_method_id_from_spree_orders.spree.rb} +0 -0
  225. data/spec/dummy/db/migrate/{20180516182060_add_id_column_to_earlier_habtm_tables.spree.rb → 20191113195931_add_id_column_to_earlier_habtm_tables.spree.rb} +0 -0
  226. data/spec/dummy/db/migrate/{20180516182061_add_indexes.spree.rb → 20191113195932_add_indexes.spree.rb} +0 -0
  227. data/spec/dummy/db/migrate/{20180516182062_remove_counter_cache_from_spree_variants_to_spree_stock_items.spree.rb → 20191113195933_remove_counter_cache_from_spree_variants_to_spree_stock_items.spree.rb} +0 -0
  228. data/spec/dummy/db/migrate/{20180516182063_acts_as_taggable_on_spree_migration.spree.rb → 20191113195934_acts_as_taggable_on_spree_migration.spree.rb} +0 -0
  229. data/spec/dummy/db/migrate/{20180516182064_change_collation_for_spree_tag_names.spree.rb → 20191113195935_change_collation_for_spree_tag_names.spree.rb} +1 -1
  230. data/spec/dummy/db/migrate/{20180516182065_add_missing_indexes_to_spree_taggings.spree.rb → 20191113195936_add_missing_indexes_to_spree_taggings.spree.rb} +0 -0
  231. data/spec/dummy/db/migrate/{20180516182066_add_zipcode_required_to_spree_countries.spree.rb → 20191113195937_add_zipcode_required_to_spree_countries.spree.rb} +0 -0
  232. data/spec/dummy/db/migrate/{20180516182067_add_created_at_to_variant.spree.rb → 20191113195938_add_created_at_to_variant.spree.rb} +0 -0
  233. data/spec/dummy/db/migrate/{20180516182068_add_null_false_to_spree_variants_timestamps.spree.rb → 20191113195939_add_null_false_to_spree_variants_timestamps.spree.rb} +0 -0
  234. data/spec/dummy/db/migrate/{20180516191805_add_quantity_to_inventory_units.spree.rb → 20191113195940_add_quantity_to_inventory_units.spree.rb} +0 -0
  235. data/spec/dummy/db/migrate/{20180516191806_add_original_return_item_id_to_spree_inventory_units.spree.rb → 20191113195941_add_original_return_item_id_to_spree_inventory_units.spree.rb} +0 -0
  236. data/spec/dummy/db/migrate/{20180516191807_add_unique_index_on_number_to_spree_orders.spree.rb → 20191113195942_add_unique_index_on_number_to_spree_orders.spree.rb} +0 -0
  237. data/spec/dummy/db/migrate/{20180516191808_add_unique_index_on_number_to_spree_stock_transfer.spree.rb → 20191113195943_add_unique_index_on_number_to_spree_stock_transfer.spree.rb} +0 -0
  238. data/spec/dummy/db/migrate/{20180516191809_add_unique_index_on_number_to_spree_shipment.spree.rb → 20191113195944_add_unique_index_on_number_to_spree_shipment.spree.rb} +0 -0
  239. data/spec/dummy/db/migrate/{20180516191810_add_unique_index_on_number_to_spree_payments.spree.rb → 20191113195945_add_unique_index_on_number_to_spree_payments.spree.rb} +0 -0
  240. data/spec/dummy/db/migrate/{20180516191811_add_unique_index_on_number_to_spree_return_authorizations.spree.rb → 20191113195946_add_unique_index_on_number_to_spree_return_authorizations.spree.rb} +0 -0
  241. data/spec/dummy/db/migrate/{20180516191812_add_unique_index_on_number_to_spree_customer_returns.spree.rb → 20191113195947_add_unique_index_on_number_to_spree_customer_returns.spree.rb} +0 -0
  242. data/spec/dummy/db/migrate/{20180516191813_add_unique_index_on_number_to_spree_reimbursements.spree.rb → 20191113195948_add_unique_index_on_number_to_spree_reimbursements.spree.rb} +0 -0
  243. data/spec/dummy/db/migrate/{20180516191814_add_missing_unique_indexes_for_unique_attributes.spree.rb → 20191113195949_add_missing_unique_indexes_for_unique_attributes.spree.rb} +0 -0
  244. data/spec/dummy/db/migrate/{20180516191815_add_index_on_stock_location_to_spree_customer_returns.spree.rb → 20191113195950_add_index_on_stock_location_to_spree_customer_returns.spree.rb} +0 -0
  245. data/spec/dummy/db/migrate/{20180516191816_add_index_on_prototype_to_spree_option_type_prototype.spree.rb → 20191113195951_add_index_on_prototype_to_spree_option_type_prototype.spree.rb} +0 -0
  246. data/spec/dummy/db/migrate/{20180516191817_add_indexes_to_spree_option_value_variant.spree.rb → 20191113195952_add_indexes_to_spree_option_value_variant.spree.rb} +0 -0
  247. data/spec/dummy/db/migrate/{20180516191818_add_index_on_promotion_id_to_order_promotions.spree.rb → 20191113195953_add_index_on_promotion_id_to_order_promotions.spree.rb} +0 -0
  248. data/spec/dummy/db/migrate/{20180516191819_add_indexes_for_property_prototype.spree.rb → 20191113195954_add_indexes_for_property_prototype.spree.rb} +0 -0
  249. data/spec/dummy/db/migrate/{20180516191820_add_index_for_prototype_id_to_prototype_taxons.spree.rb → 20191113195955_add_index_for_prototype_id_to_prototype_taxons.spree.rb} +0 -0
  250. data/spec/dummy/db/migrate/{20180516191821_add_indexes_to_refunds.spree.rb → 20191113195956_add_indexes_to_refunds.spree.rb} +0 -0
  251. data/spec/dummy/db/migrate/{20180516191822_add_indexes_to_reimbursement_credits.spree.rb → 20191113195957_add_indexes_to_reimbursement_credits.spree.rb} +0 -0
  252. data/spec/dummy/db/migrate/{20180516191823_add_indexes_to_return_authorizations.spree.rb → 20191113195958_add_indexes_to_return_authorizations.spree.rb} +0 -0
  253. data/spec/dummy/db/migrate/{20180516191824_add_indexes_to_return_items.spree.rb → 20191113195959_add_indexes_to_return_items.spree.rb} +0 -0
  254. data/spec/dummy/db/migrate/{20180516191825_add_index_to_role_users.spree.rb → 20191113195960_add_index_to_role_users.spree.rb} +0 -0
  255. data/spec/dummy/db/migrate/{20180516191826_add_index_to_shipping_method_categories.spree.rb → 20191113195961_add_index_to_shipping_method_categories.spree.rb} +0 -0
  256. data/spec/dummy/db/migrate/{20180516191827_add_index_to_shipping_method_zones.spree.rb → 20191113195962_add_index_to_shipping_method_zones.spree.rb} +0 -0
  257. data/spec/dummy/db/migrate/{20180516191828_add_index_to_spree_shipping_rates.spree.rb → 20191113195963_add_index_to_spree_shipping_rates.spree.rb} +0 -0
  258. data/spec/dummy/db/migrate/{20180516191829_add_index_to_spree_stock_items.spree.rb → 20191113195964_add_index_to_spree_stock_items.spree.rb} +0 -0
  259. data/spec/dummy/db/migrate/{20180516191830_add_index_to_spree_stock_movement.spree.rb → 20191113195965_add_index_to_spree_stock_movement.spree.rb} +0 -0
  260. data/spec/dummy/db/migrate/{20180516191831_change_indexes_on_friendly_id_slugs.spree.rb → 20191113195966_change_indexes_on_friendly_id_slugs.spree.rb} +0 -0
  261. data/spec/dummy/db/migrate/{20180516191832_add_analytics_kind_to_spree_trackers.spree.rb → 20191113195967_add_analytics_kind_to_spree_trackers.spree.rb} +0 -0
  262. data/spec/dummy/db/migrate/{20180516191833_rename_tracker_kind_field.spree.rb → 20191113195968_rename_tracker_kind_field.spree.rb} +0 -0
  263. data/spec/dummy/db/migrate/20191113195969_remove_icon_from_taxons.spree.rb +9 -0
  264. data/spec/dummy/db/migrate/{20180516202854_add_unique_index_on_spree_promotions_code.spree.rb → 20191113195970_add_unique_index_on_spree_promotions_code.spree.rb} +0 -0
  265. data/spec/dummy/db/migrate/20191113195971_rename_guest_token_to_token_in_orders.spree.rb +6 -0
  266. data/spec/dummy/db/migrate/20191113195972_add_timestamps_to_spree_prices.spree.rb +13 -0
  267. data/spec/dummy/db/migrate/20191113195973_add_deleted_at_to_spree_credit_cards.spree.rb +7 -0
  268. data/spec/dummy/db/migrate/{20180516182069_create_spree_purchase_orders.spree_purchase_order.rb → 20191113195974_create_spree_purchase_orders.spree_purchase_order.rb} +1 -1
  269. data/spec/dummy/db/migrate/{20180516182070_add_payment_method_id_to_spree_purchase_orders.spree_purchase_order.rb → 20191113195975_add_payment_method_id_to_spree_purchase_orders.spree_purchase_order.rb} +1 -1
  270. data/spec/dummy/db/migrate/{20180516182071_add_user_id_to_spree_purchase_orders.spree_purchase_order.rb → 20191113195976_add_user_id_to_spree_purchase_orders.spree_purchase_order.rb} +1 -1
  271. data/spec/dummy/db/schema.rb +1 -1034
  272. data/spec/dummy/db/test.sqlite3 +0 -0
  273. data/spec/dummy/log/development.log +0 -0
  274. data/spec/dummy/log/test.log +2874 -34412
  275. data/spec/dummy/tmp/cache/17E/D61/spree%2Fapp_configuration%2Fdefault_seo_title +1 -1
  276. data/spec/dummy/tmp/cache/334/AA1/spree%2Fapp_configuration%2Fdefault_meta_keywords +1 -1
  277. data/spec/dummy/tmp/cache/3A0/291/spree%2Fapp_configuration%2Faddress_requires_phone +1 -1
  278. data/spec/dummy/tmp/cache/3A7/4A1/spree%2Fapp_configuration%2Faddress_requires_state +1 -1
  279. data/spec/dummy/tmp/cache/460/D81/spree%2Fapp_configuration%2Fdefault_meta_description +1 -1
  280. data/spec/dummy/tmp/cache/DD9/320/spree%2Fapp_configuration%2Fsite_url +1 -1
  281. data/spec/dummy/tmp/cache/DDD/2D0/spree%2Fapp_configuration%2Fcurrency +1 -1
  282. data/spec/dummy/tmp/cache/E27/320/spree%2Fapp_configuration%2Fsite_name +1 -1
  283. data/spec/dummy/tmp/cache/E9B/7F0/spree%2Fapp_configuration%2Fmails_from +1 -1
  284. data/spec/factories/purchase_orders.rb +23 -23
  285. metadata +574 -564
  286. data/spec/dummy/db/migrate/20180516202853_remove_icon_from_taxons.spree.rb +0 -9
@@ -14,7 +14,7 @@ class CreateSpreeStoreCredits < ActiveRecord::Migration[4.2]
14
14
  t.integer :originator_id
15
15
  t.string :originator_type
16
16
  t.integer :type_id
17
- t.timestamps null: false
17
+ t.timestamps null: false, precision: 6
18
18
  end
19
19
 
20
20
  add_index :spree_store_credits, :deleted_at
@@ -3,7 +3,7 @@ class CreateSpreeStoreCreditCategories < ActiveRecord::Migration[4.2]
3
3
  def change
4
4
  create_table :spree_store_credit_categories do |t|
5
5
  t.string :name
6
- t.timestamps null: false
6
+ t.timestamps null: false, precision: 6
7
7
  end
8
8
  end
9
9
  end
@@ -10,7 +10,7 @@ class CreateSpreeStoreCreditEvents < ActiveRecord::Migration[4.2]
10
10
  t.integer :originator_id
11
11
  t.string :originator_type
12
12
  t.datetime :deleted_at
13
- t.timestamps null: false
13
+ t.timestamps null: false, precision: 6
14
14
  end
15
15
  add_index :spree_store_credit_events, :store_credit_id
16
16
  add_index :spree_store_credit_events, [:originator_id, :originator_type], name: :spree_store_credit_events_originator
@@ -4,7 +4,7 @@ class CreateSpreeStoreCreditTypes < ActiveRecord::Migration[4.2]
4
4
  create_table :spree_store_credit_types do |t|
5
5
  t.string :name
6
6
  t.integer :priority
7
- t.timestamps null: false
7
+ t.timestamps null: false, precision: 6
8
8
  end
9
9
  add_index :spree_store_credit_types, :priority
10
10
  end
@@ -1,5 +1,7 @@
1
1
  # This migration comes from spree (originally 20150128032538)
2
2
  class RemoveEnvironmentFromTracker < ActiveRecord::Migration[4.2]
3
+ class Spree::Tracker < Spree::Base; end
4
+
3
5
  def up
4
6
  Spree::Tracker.where('environment != ?', Rails.env).update_all(active: false)
5
7
  remove_column :spree_trackers, :environment
@@ -3,8 +3,12 @@ class EnsurePaymentsHaveNumbers < ActiveRecord::Migration[4.2]
3
3
  def change
4
4
  add_index :spree_payments, :number unless index_exists?(:spree_payments, :number)
5
5
  Spree::Payment.where(number: nil).find_each do |payment|
6
- payment.generate_number
7
- payment.update_columns(number: payment.number)
6
+ begin
7
+ payment.save! # to generate a new number we need to save the record
8
+ rescue ActiveRecord::RecordNotSaved
9
+ Rails.logger.error("Payment with ID = #{payment.id} couldn't be saved")
10
+ Rails.logger.error(payment.errors.full_messages.to_sentence)
11
+ end
8
12
  end
9
13
  end
10
14
  end
@@ -3,7 +3,7 @@
3
3
  # work properly
4
4
  class ChangeCollationForSpreeTagNames < ActiveRecord::Migration[4.2]
5
5
  def up
6
- if ActsAsTaggableOn::Utils.using_mysql?
6
+ if defined?(ActsAsTaggableOn) && ActsAsTaggableOn::Utils.using_mysql?
7
7
  execute("ALTER TABLE spree_tags MODIFY name varchar(255) CHARACTER SET utf8 COLLATE utf8_bin;")
8
8
  end
9
9
  end
@@ -0,0 +1,9 @@
1
+ # This migration comes from spree (originally 20171004223836)
2
+ class RemoveIconFromTaxons < ActiveRecord::Migration[5.1]
3
+ def change
4
+ remove_column :spree_taxons, :icon_file_name if column_exists? :spree_taxons, :icon_file_name
5
+ remove_column :spree_taxons, :icon_content_type if column_exists? :spree_taxons, :icon_content_type
6
+ remove_column :spree_taxons, :icon_file_size if column_exists? :spree_taxons, :icon_file_size
7
+ remove_column :spree_taxons, :icon_updated_at if column_exists? :spree_taxons, :icon_updated_at
8
+ end
9
+ end
@@ -0,0 +1,6 @@
1
+ # This migration comes from spree (originally 20180613080857)
2
+ class RenameGuestTokenToTokenInOrders < ActiveRecord::Migration[5.2]
3
+ def change
4
+ rename_column :spree_orders, :guest_token, :token
5
+ end
6
+ end
@@ -0,0 +1,13 @@
1
+ # This migration comes from spree (originally 20180915160001)
2
+ class AddTimestampsToSpreePrices < ActiveRecord::Migration[5.2]
3
+ def up
4
+ add_timestamps :spree_prices, default: Time.current
5
+ change_column_default :spree_prices, :created_at, nil
6
+ change_column_default :spree_prices, :updated_at, nil
7
+ end
8
+
9
+ def down
10
+ remove_column :spree_prices, :created_at
11
+ remove_column :spree_prices, :updated_at
12
+ end
13
+ end
@@ -0,0 +1,7 @@
1
+ # This migration comes from spree (originally 20181024100754)
2
+ class AddDeletedAtToSpreeCreditCards < ActiveRecord::Migration[5.2]
3
+ def change
4
+ add_column :spree_credit_cards, :deleted_at, :datetime
5
+ add_index :spree_credit_cards, :deleted_at
6
+ end
7
+ end
@@ -1,5 +1,5 @@
1
1
  # This migration comes from spree_purchase_order (originally 20160111123141)
2
- class CreateSpreePurchaseOrders < ActiveRecord::Migration
2
+ class CreateSpreePurchaseOrders < ActiveRecord::Migration[4.2]
3
3
  def change
4
4
  create_table :spree_purchase_orders do |t|
5
5
  t.string :po_number
@@ -1,5 +1,5 @@
1
1
  # This migration comes from spree_purchase_order (originally 20161214190805)
2
- class AddPaymentMethodIdToSpreePurchaseOrders < ActiveRecord::Migration
2
+ class AddPaymentMethodIdToSpreePurchaseOrders < ActiveRecord::Migration[4.2]
3
3
  def change
4
4
  add_column :spree_purchase_orders, :payment_method_id, :integer
5
5
  add_index :spree_purchase_orders, :payment_method_id
@@ -1,5 +1,5 @@
1
1
  # This migration comes from spree_purchase_order (originally 20161214191512)
2
- class AddUserIdToSpreePurchaseOrders < ActiveRecord::Migration
2
+ class AddUserIdToSpreePurchaseOrders < ActiveRecord::Migration[4.2]
3
3
  def change
4
4
  add_column :spree_purchase_orders, :user_id, :integer
5
5
  add_index :spree_purchase_orders, :user_id
@@ -10,525 +10,7 @@
10
10
  #
11
11
  # It's strongly recommended that you check this file into your version control system.
12
12
 
13
- ActiveRecord::Schema.define(version: 20180516202854) do
14
-
15
- create_table "friendly_id_slugs", force: :cascade do |t|
16
- t.string "slug", null: false
17
- t.integer "sluggable_id", null: false
18
- t.string "sluggable_type", limit: 50
19
- t.string "scope"
20
- t.datetime "created_at"
21
- t.datetime "deleted_at"
22
- t.index ["deleted_at"], name: "index_friendly_id_slugs_on_deleted_at"
23
- t.index ["slug", "sluggable_type", "scope"], name: "index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope", unique: true
24
- t.index ["slug", "sluggable_type"], name: "index_friendly_id_slugs_on_slug_and_sluggable_type"
25
- t.index ["sluggable_id"], name: "index_friendly_id_slugs_on_sluggable_id"
26
- t.index ["sluggable_type"], name: "index_friendly_id_slugs_on_sluggable_type"
27
- end
28
-
29
- create_table "spree_addresses", force: :cascade do |t|
30
- t.string "firstname"
31
- t.string "lastname"
32
- t.string "address1"
33
- t.string "address2"
34
- t.string "city"
35
- t.string "zipcode"
36
- t.string "phone"
37
- t.string "state_name"
38
- t.string "alternative_phone"
39
- t.string "company"
40
- t.integer "state_id"
41
- t.integer "country_id"
42
- t.datetime "created_at", null: false
43
- t.datetime "updated_at", null: false
44
- t.index ["country_id"], name: "index_spree_addresses_on_country_id"
45
- t.index ["firstname"], name: "index_addresses_on_firstname"
46
- t.index ["lastname"], name: "index_addresses_on_lastname"
47
- t.index ["state_id"], name: "index_spree_addresses_on_state_id"
48
- end
49
-
50
- create_table "spree_adjustments", force: :cascade do |t|
51
- t.string "source_type"
52
- t.integer "source_id"
53
- t.string "adjustable_type"
54
- t.integer "adjustable_id"
55
- t.decimal "amount", precision: 10, scale: 2
56
- t.string "label"
57
- t.boolean "mandatory"
58
- t.boolean "eligible", default: true
59
- t.datetime "created_at", null: false
60
- t.datetime "updated_at", null: false
61
- t.string "state"
62
- t.integer "order_id", null: false
63
- t.boolean "included", default: false
64
- t.index ["adjustable_id", "adjustable_type"], name: "index_spree_adjustments_on_adjustable_id_and_adjustable_type"
65
- t.index ["eligible"], name: "index_spree_adjustments_on_eligible"
66
- t.index ["order_id"], name: "index_spree_adjustments_on_order_id"
67
- t.index ["source_id", "source_type"], name: "index_spree_adjustments_on_source_id_and_source_type"
68
- end
69
-
70
- create_table "spree_assets", force: :cascade do |t|
71
- t.string "viewable_type"
72
- t.integer "viewable_id"
73
- t.integer "attachment_width"
74
- t.integer "attachment_height"
75
- t.integer "attachment_file_size"
76
- t.integer "position"
77
- t.string "attachment_content_type"
78
- t.string "attachment_file_name"
79
- t.string "type", limit: 75
80
- t.datetime "attachment_updated_at"
81
- t.text "alt"
82
- t.datetime "created_at"
83
- t.datetime "updated_at"
84
- t.index ["position"], name: "index_spree_assets_on_position"
85
- t.index ["viewable_id"], name: "index_assets_on_viewable_id"
86
- t.index ["viewable_type", "type"], name: "index_assets_on_viewable_type_and_type"
87
- end
88
-
89
- create_table "spree_calculators", force: :cascade do |t|
90
- t.string "type"
91
- t.string "calculable_type"
92
- t.integer "calculable_id"
93
- t.datetime "created_at", null: false
94
- t.datetime "updated_at", null: false
95
- t.text "preferences"
96
- t.datetime "deleted_at"
97
- t.index ["calculable_id", "calculable_type"], name: "index_spree_calculators_on_calculable_id_and_calculable_type"
98
- t.index ["deleted_at"], name: "index_spree_calculators_on_deleted_at"
99
- t.index ["id", "type"], name: "index_spree_calculators_on_id_and_type"
100
- end
101
-
102
- create_table "spree_countries", force: :cascade do |t|
103
- t.string "iso_name"
104
- t.string "iso"
105
- t.string "iso3"
106
- t.string "name"
107
- t.integer "numcode"
108
- t.boolean "states_required", default: false
109
- t.datetime "updated_at"
110
- t.boolean "zipcode_required", default: true
111
- t.index ["iso_name"], name: "index_spree_countries_on_iso_name", unique: true
112
- t.index ["name"], name: "index_spree_countries_on_name", unique: true
113
- end
114
-
115
- create_table "spree_credit_cards", force: :cascade do |t|
116
- t.string "month"
117
- t.string "year"
118
- t.string "cc_type"
119
- t.string "last_digits"
120
- t.integer "address_id"
121
- t.string "gateway_customer_profile_id"
122
- t.string "gateway_payment_profile_id"
123
- t.datetime "created_at", null: false
124
- t.datetime "updated_at", null: false
125
- t.string "name"
126
- t.integer "user_id"
127
- t.integer "payment_method_id"
128
- t.boolean "default", default: false, null: false
129
- t.index ["address_id"], name: "index_spree_credit_cards_on_address_id"
130
- t.index ["payment_method_id"], name: "index_spree_credit_cards_on_payment_method_id"
131
- t.index ["user_id"], name: "index_spree_credit_cards_on_user_id"
132
- end
133
-
134
- create_table "spree_customer_returns", force: :cascade do |t|
135
- t.string "number"
136
- t.integer "stock_location_id"
137
- t.datetime "created_at", null: false
138
- t.datetime "updated_at", null: false
139
- t.index ["number"], name: "index_spree_customer_returns_on_number", unique: true
140
- t.index ["stock_location_id"], name: "index_spree_customer_returns_on_stock_location_id"
141
- end
142
-
143
- create_table "spree_gateways", force: :cascade do |t|
144
- t.string "type"
145
- t.string "name"
146
- t.text "description"
147
- t.boolean "active", default: true
148
- t.string "environment", default: "development"
149
- t.string "server", default: "test"
150
- t.boolean "test_mode", default: true
151
- t.datetime "created_at", null: false
152
- t.datetime "updated_at", null: false
153
- t.text "preferences"
154
- t.index ["active"], name: "index_spree_gateways_on_active"
155
- t.index ["test_mode"], name: "index_spree_gateways_on_test_mode"
156
- end
157
-
158
- create_table "spree_inventory_units", force: :cascade do |t|
159
- t.string "state"
160
- t.integer "variant_id"
161
- t.integer "order_id"
162
- t.integer "shipment_id"
163
- t.datetime "created_at", null: false
164
- t.datetime "updated_at", null: false
165
- t.boolean "pending", default: true
166
- t.integer "line_item_id"
167
- t.integer "quantity", default: 1
168
- t.integer "original_return_item_id"
169
- t.index ["line_item_id"], name: "index_spree_inventory_units_on_line_item_id"
170
- t.index ["order_id"], name: "index_inventory_units_on_order_id"
171
- t.index ["original_return_item_id"], name: "index_spree_inventory_units_on_original_return_item_id"
172
- t.index ["shipment_id"], name: "index_inventory_units_on_shipment_id"
173
- t.index ["variant_id"], name: "index_inventory_units_on_variant_id"
174
- end
175
-
176
- create_table "spree_line_items", force: :cascade do |t|
177
- t.integer "variant_id"
178
- t.integer "order_id"
179
- t.integer "quantity", null: false
180
- t.decimal "price", precision: 10, scale: 2, null: false
181
- t.datetime "created_at", null: false
182
- t.datetime "updated_at", null: false
183
- t.string "currency"
184
- t.decimal "cost_price", precision: 10, scale: 2
185
- t.integer "tax_category_id"
186
- t.decimal "adjustment_total", precision: 10, scale: 2, default: "0.0"
187
- t.decimal "additional_tax_total", precision: 10, scale: 2, default: "0.0"
188
- t.decimal "promo_total", precision: 10, scale: 2, default: "0.0"
189
- t.decimal "included_tax_total", precision: 10, scale: 2, default: "0.0", null: false
190
- t.decimal "pre_tax_amount", precision: 12, scale: 4, default: "0.0", null: false
191
- t.decimal "taxable_adjustment_total", precision: 10, scale: 2, default: "0.0", null: false
192
- t.decimal "non_taxable_adjustment_total", precision: 10, scale: 2, default: "0.0", null: false
193
- t.index ["order_id"], name: "index_spree_line_items_on_order_id"
194
- t.index ["tax_category_id"], name: "index_spree_line_items_on_tax_category_id"
195
- t.index ["variant_id"], name: "index_spree_line_items_on_variant_id"
196
- end
197
-
198
- create_table "spree_log_entries", force: :cascade do |t|
199
- t.string "source_type"
200
- t.integer "source_id"
201
- t.text "details"
202
- t.datetime "created_at", null: false
203
- t.datetime "updated_at", null: false
204
- t.index ["source_id", "source_type"], name: "index_spree_log_entries_on_source_id_and_source_type"
205
- end
206
-
207
- create_table "spree_option_type_prototypes", force: :cascade do |t|
208
- t.integer "prototype_id"
209
- t.integer "option_type_id"
210
- t.index ["option_type_id"], name: "index_spree_option_type_prototypes_on_option_type_id"
211
- t.index ["prototype_id", "option_type_id"], name: "spree_option_type_prototypes_prototype_id_option_type_id", unique: true
212
- t.index ["prototype_id"], name: "index_spree_option_type_prototypes_on_prototype_id"
213
- end
214
-
215
- create_table "spree_option_types", force: :cascade do |t|
216
- t.string "name", limit: 100
217
- t.string "presentation", limit: 100
218
- t.integer "position", default: 0, null: false
219
- t.datetime "created_at", null: false
220
- t.datetime "updated_at", null: false
221
- t.index ["name"], name: "index_spree_option_types_on_name"
222
- t.index ["position"], name: "index_spree_option_types_on_position"
223
- end
224
-
225
- create_table "spree_option_value_variants", force: :cascade do |t|
226
- t.integer "variant_id"
227
- t.integer "option_value_id"
228
- t.index ["option_value_id"], name: "index_spree_option_value_variants_on_option_value_id"
229
- t.index ["variant_id", "option_value_id"], name: "index_option_values_variants_on_variant_id_and_option_value_id", unique: true
230
- t.index ["variant_id"], name: "index_spree_option_value_variants_on_variant_id"
231
- end
232
-
233
- create_table "spree_option_values", force: :cascade do |t|
234
- t.integer "position"
235
- t.string "name"
236
- t.string "presentation"
237
- t.integer "option_type_id"
238
- t.datetime "created_at", null: false
239
- t.datetime "updated_at", null: false
240
- t.index ["name"], name: "index_spree_option_values_on_name"
241
- t.index ["option_type_id"], name: "index_spree_option_values_on_option_type_id"
242
- t.index ["position"], name: "index_spree_option_values_on_position"
243
- end
244
-
245
- create_table "spree_order_promotions", force: :cascade do |t|
246
- t.integer "order_id"
247
- t.integer "promotion_id"
248
- t.index ["order_id"], name: "index_spree_order_promotions_on_order_id"
249
- t.index ["promotion_id", "order_id"], name: "index_spree_order_promotions_on_promotion_id_and_order_id"
250
- t.index ["promotion_id"], name: "index_spree_order_promotions_on_promotion_id"
251
- end
252
-
253
- create_table "spree_orders", force: :cascade do |t|
254
- t.string "number", limit: 32
255
- t.decimal "item_total", precision: 10, scale: 2, default: "0.0", null: false
256
- t.decimal "total", precision: 10, scale: 2, default: "0.0", null: false
257
- t.string "state"
258
- t.decimal "adjustment_total", precision: 10, scale: 2, default: "0.0", null: false
259
- t.integer "user_id"
260
- t.datetime "completed_at"
261
- t.integer "bill_address_id"
262
- t.integer "ship_address_id"
263
- t.decimal "payment_total", precision: 10, scale: 2, default: "0.0"
264
- t.string "shipment_state"
265
- t.string "payment_state"
266
- t.string "email"
267
- t.text "special_instructions"
268
- t.datetime "created_at", null: false
269
- t.datetime "updated_at", null: false
270
- t.string "currency"
271
- t.string "last_ip_address"
272
- t.integer "created_by_id"
273
- t.decimal "shipment_total", precision: 10, scale: 2, default: "0.0", null: false
274
- t.decimal "additional_tax_total", precision: 10, scale: 2, default: "0.0"
275
- t.decimal "promo_total", precision: 10, scale: 2, default: "0.0"
276
- t.string "channel", default: "spree"
277
- t.decimal "included_tax_total", precision: 10, scale: 2, default: "0.0", null: false
278
- t.integer "item_count", default: 0
279
- t.integer "approver_id"
280
- t.datetime "approved_at"
281
- t.boolean "confirmation_delivered", default: false
282
- t.boolean "considered_risky", default: false
283
- t.string "guest_token"
284
- t.datetime "canceled_at"
285
- t.integer "canceler_id"
286
- t.integer "store_id"
287
- t.integer "state_lock_version", default: 0, null: false
288
- t.decimal "taxable_adjustment_total", precision: 10, scale: 2, default: "0.0", null: false
289
- t.decimal "non_taxable_adjustment_total", precision: 10, scale: 2, default: "0.0", null: false
290
- t.index ["approver_id"], name: "index_spree_orders_on_approver_id"
291
- t.index ["bill_address_id"], name: "index_spree_orders_on_bill_address_id"
292
- t.index ["canceler_id"], name: "index_spree_orders_on_canceler_id"
293
- t.index ["completed_at"], name: "index_spree_orders_on_completed_at"
294
- t.index ["confirmation_delivered"], name: "index_spree_orders_on_confirmation_delivered"
295
- t.index ["considered_risky"], name: "index_spree_orders_on_considered_risky"
296
- t.index ["created_by_id"], name: "index_spree_orders_on_created_by_id"
297
- t.index ["guest_token"], name: "index_spree_orders_on_guest_token"
298
- t.index ["number"], name: "index_spree_orders_on_number", unique: true
299
- t.index ["ship_address_id"], name: "index_spree_orders_on_ship_address_id"
300
- t.index ["store_id"], name: "index_spree_orders_on_store_id"
301
- t.index ["user_id", "created_by_id"], name: "index_spree_orders_on_user_id_and_created_by_id"
302
- end
303
-
304
- create_table "spree_payment_capture_events", force: :cascade do |t|
305
- t.decimal "amount", precision: 10, scale: 2, default: "0.0"
306
- t.integer "payment_id"
307
- t.datetime "created_at", null: false
308
- t.datetime "updated_at", null: false
309
- t.index ["payment_id"], name: "index_spree_payment_capture_events_on_payment_id"
310
- end
311
-
312
- create_table "spree_payment_methods", force: :cascade do |t|
313
- t.string "type"
314
- t.string "name"
315
- t.text "description"
316
- t.boolean "active", default: true
317
- t.datetime "deleted_at"
318
- t.datetime "created_at", null: false
319
- t.datetime "updated_at", null: false
320
- t.string "display_on", default: "both"
321
- t.boolean "auto_capture"
322
- t.text "preferences"
323
- t.integer "position", default: 0
324
- t.index ["id", "type"], name: "index_spree_payment_methods_on_id_and_type"
325
- end
326
-
327
- create_table "spree_payments", force: :cascade do |t|
328
- t.decimal "amount", precision: 10, scale: 2, default: "0.0", null: false
329
- t.integer "order_id"
330
- t.string "source_type"
331
- t.integer "source_id"
332
- t.integer "payment_method_id"
333
- t.string "state"
334
- t.string "response_code"
335
- t.string "avs_response"
336
- t.datetime "created_at", null: false
337
- t.datetime "updated_at", null: false
338
- t.string "number"
339
- t.string "cvv_response_code"
340
- t.string "cvv_response_message"
341
- t.index ["number"], name: "index_spree_payments_on_number", unique: true
342
- t.index ["order_id"], name: "index_spree_payments_on_order_id"
343
- t.index ["payment_method_id"], name: "index_spree_payments_on_payment_method_id"
344
- t.index ["source_id", "source_type"], name: "index_spree_payments_on_source_id_and_source_type"
345
- end
346
-
347
- create_table "spree_preferences", force: :cascade do |t|
348
- t.text "value"
349
- t.string "key"
350
- t.datetime "created_at", null: false
351
- t.datetime "updated_at", null: false
352
- t.index ["key"], name: "index_spree_preferences_on_key", unique: true
353
- end
354
-
355
- create_table "spree_prices", force: :cascade do |t|
356
- t.integer "variant_id", null: false
357
- t.decimal "amount", precision: 10, scale: 2
358
- t.string "currency"
359
- t.datetime "deleted_at"
360
- t.index ["deleted_at"], name: "index_spree_prices_on_deleted_at"
361
- t.index ["variant_id", "currency"], name: "index_spree_prices_on_variant_id_and_currency"
362
- t.index ["variant_id"], name: "index_spree_prices_on_variant_id"
363
- end
364
-
365
- create_table "spree_product_option_types", force: :cascade do |t|
366
- t.integer "position"
367
- t.integer "product_id"
368
- t.integer "option_type_id"
369
- t.datetime "created_at", null: false
370
- t.datetime "updated_at", null: false
371
- t.index ["option_type_id"], name: "index_spree_product_option_types_on_option_type_id"
372
- t.index ["position"], name: "index_spree_product_option_types_on_position"
373
- t.index ["product_id"], name: "index_spree_product_option_types_on_product_id"
374
- end
375
-
376
- create_table "spree_product_promotion_rules", force: :cascade do |t|
377
- t.integer "product_id"
378
- t.integer "promotion_rule_id"
379
- t.index ["product_id"], name: "index_products_promotion_rules_on_product_id"
380
- t.index ["promotion_rule_id", "product_id"], name: "index_products_promotion_rules_on_promotion_rule_and_product"
381
- end
382
-
383
- create_table "spree_product_properties", force: :cascade do |t|
384
- t.string "value"
385
- t.integer "product_id"
386
- t.integer "property_id"
387
- t.datetime "created_at", null: false
388
- t.datetime "updated_at", null: false
389
- t.integer "position", default: 0
390
- t.index ["position"], name: "index_spree_product_properties_on_position"
391
- t.index ["product_id"], name: "index_product_properties_on_product_id"
392
- t.index ["property_id"], name: "index_spree_product_properties_on_property_id"
393
- end
394
-
395
- create_table "spree_products", force: :cascade do |t|
396
- t.string "name", default: "", null: false
397
- t.text "description"
398
- t.datetime "available_on"
399
- t.datetime "deleted_at"
400
- t.string "slug"
401
- t.text "meta_description"
402
- t.string "meta_keywords"
403
- t.integer "tax_category_id"
404
- t.integer "shipping_category_id"
405
- t.datetime "created_at", null: false
406
- t.datetime "updated_at", null: false
407
- t.boolean "promotionable", default: true
408
- t.string "meta_title"
409
- t.datetime "discontinue_on"
410
- t.index ["available_on"], name: "index_spree_products_on_available_on"
411
- t.index ["deleted_at"], name: "index_spree_products_on_deleted_at"
412
- t.index ["discontinue_on"], name: "index_spree_products_on_discontinue_on"
413
- t.index ["name"], name: "index_spree_products_on_name"
414
- t.index ["shipping_category_id"], name: "index_spree_products_on_shipping_category_id"
415
- t.index ["slug"], name: "index_spree_products_on_slug", unique: true
416
- t.index ["tax_category_id"], name: "index_spree_products_on_tax_category_id"
417
- end
418
-
419
- create_table "spree_products_taxons", force: :cascade do |t|
420
- t.integer "product_id"
421
- t.integer "taxon_id"
422
- t.integer "position"
423
- t.index ["position"], name: "index_spree_products_taxons_on_position"
424
- t.index ["product_id"], name: "index_spree_products_taxons_on_product_id"
425
- t.index ["taxon_id"], name: "index_spree_products_taxons_on_taxon_id"
426
- end
427
-
428
- create_table "spree_promotion_action_line_items", force: :cascade do |t|
429
- t.integer "promotion_action_id"
430
- t.integer "variant_id"
431
- t.integer "quantity", default: 1
432
- t.index ["promotion_action_id"], name: "index_spree_promotion_action_line_items_on_promotion_action_id"
433
- t.index ["variant_id"], name: "index_spree_promotion_action_line_items_on_variant_id"
434
- end
435
-
436
- create_table "spree_promotion_actions", force: :cascade do |t|
437
- t.integer "promotion_id"
438
- t.integer "position"
439
- t.string "type"
440
- t.datetime "deleted_at"
441
- t.index ["deleted_at"], name: "index_spree_promotion_actions_on_deleted_at"
442
- t.index ["id", "type"], name: "index_spree_promotion_actions_on_id_and_type"
443
- t.index ["promotion_id"], name: "index_spree_promotion_actions_on_promotion_id"
444
- end
445
-
446
- create_table "spree_promotion_categories", force: :cascade do |t|
447
- t.string "name"
448
- t.datetime "created_at", null: false
449
- t.datetime "updated_at", null: false
450
- t.string "code"
451
- end
452
-
453
- create_table "spree_promotion_rule_taxons", force: :cascade do |t|
454
- t.integer "taxon_id"
455
- t.integer "promotion_rule_id"
456
- t.index ["promotion_rule_id"], name: "index_spree_promotion_rule_taxons_on_promotion_rule_id"
457
- t.index ["taxon_id"], name: "index_spree_promotion_rule_taxons_on_taxon_id"
458
- end
459
-
460
- create_table "spree_promotion_rule_users", force: :cascade do |t|
461
- t.integer "user_id"
462
- t.integer "promotion_rule_id"
463
- t.index ["promotion_rule_id"], name: "index_promotion_rules_users_on_promotion_rule_id"
464
- t.index ["user_id", "promotion_rule_id"], name: "index_promotion_rules_users_on_user_id_and_promotion_rule_id"
465
- end
466
-
467
- create_table "spree_promotion_rules", force: :cascade do |t|
468
- t.integer "promotion_id"
469
- t.integer "user_id"
470
- t.integer "product_group_id"
471
- t.string "type"
472
- t.datetime "created_at", null: false
473
- t.datetime "updated_at", null: false
474
- t.string "code"
475
- t.text "preferences"
476
- t.index ["product_group_id"], name: "index_promotion_rules_on_product_group_id"
477
- t.index ["promotion_id"], name: "index_spree_promotion_rules_on_promotion_id"
478
- t.index ["user_id"], name: "index_promotion_rules_on_user_id"
479
- end
480
-
481
- create_table "spree_promotions", force: :cascade do |t|
482
- t.string "description"
483
- t.datetime "expires_at"
484
- t.datetime "starts_at"
485
- t.string "name"
486
- t.string "type"
487
- t.integer "usage_limit"
488
- t.string "match_policy", default: "all"
489
- t.string "code"
490
- t.boolean "advertise", default: false
491
- t.string "path"
492
- t.datetime "created_at", null: false
493
- t.datetime "updated_at", null: false
494
- t.integer "promotion_category_id"
495
- t.index ["advertise"], name: "index_spree_promotions_on_advertise"
496
- t.index ["code"], name: "index_spree_promotions_on_code", unique: true
497
- t.index ["expires_at"], name: "index_spree_promotions_on_expires_at"
498
- t.index ["id", "type"], name: "index_spree_promotions_on_id_and_type"
499
- t.index ["promotion_category_id"], name: "index_spree_promotions_on_promotion_category_id"
500
- t.index ["starts_at"], name: "index_spree_promotions_on_starts_at"
501
- end
502
-
503
- create_table "spree_properties", force: :cascade do |t|
504
- t.string "name"
505
- t.string "presentation", null: false
506
- t.datetime "created_at", null: false
507
- t.datetime "updated_at", null: false
508
- t.index ["name"], name: "index_spree_properties_on_name"
509
- end
510
-
511
- create_table "spree_property_prototypes", force: :cascade do |t|
512
- t.integer "prototype_id"
513
- t.integer "property_id"
514
- t.index ["property_id"], name: "index_spree_property_prototypes_on_property_id"
515
- t.index ["prototype_id", "property_id"], name: "index_property_prototypes_on_prototype_id_and_property_id", unique: true
516
- t.index ["prototype_id"], name: "index_spree_property_prototypes_on_prototype_id"
517
- end
518
-
519
- create_table "spree_prototype_taxons", force: :cascade do |t|
520
- t.integer "taxon_id"
521
- t.integer "prototype_id"
522
- t.index ["prototype_id", "taxon_id"], name: "index_spree_prototype_taxons_on_prototype_id_and_taxon_id"
523
- t.index ["prototype_id"], name: "index_spree_prototype_taxons_on_prototype_id"
524
- t.index ["taxon_id"], name: "index_spree_prototype_taxons_on_taxon_id"
525
- end
526
-
527
- create_table "spree_prototypes", force: :cascade do |t|
528
- t.string "name"
529
- t.datetime "created_at", null: false
530
- t.datetime "updated_at", null: false
531
- end
13
+ ActiveRecord::Schema.define(version: 2016_12_14_191512) do
532
14
 
533
15
  create_table "spree_purchase_orders", force: :cascade do |t|
534
16
  t.string "po_number"
@@ -541,519 +23,4 @@ ActiveRecord::Schema.define(version: 20180516202854) do
541
23
  t.index ["user_id"], name: "index_spree_purchase_orders_on_user_id"
542
24
  end
543
25
 
544
- create_table "spree_refund_reasons", force: :cascade do |t|
545
- t.string "name"
546
- t.boolean "active", default: true
547
- t.boolean "mutable", default: true
548
- t.datetime "created_at", null: false
549
- t.datetime "updated_at", null: false
550
- t.index ["name"], name: "index_spree_refund_reasons_on_name", unique: true
551
- end
552
-
553
- create_table "spree_refunds", force: :cascade do |t|
554
- t.integer "payment_id"
555
- t.decimal "amount", precision: 10, scale: 2, default: "0.0", null: false
556
- t.string "transaction_id"
557
- t.datetime "created_at", null: false
558
- t.datetime "updated_at", null: false
559
- t.integer "refund_reason_id"
560
- t.integer "reimbursement_id"
561
- t.index ["payment_id"], name: "index_spree_refunds_on_payment_id"
562
- t.index ["refund_reason_id"], name: "index_refunds_on_refund_reason_id"
563
- t.index ["reimbursement_id"], name: "index_spree_refunds_on_reimbursement_id"
564
- end
565
-
566
- create_table "spree_reimbursement_credits", force: :cascade do |t|
567
- t.decimal "amount", precision: 10, scale: 2, default: "0.0", null: false
568
- t.integer "reimbursement_id"
569
- t.integer "creditable_id"
570
- t.string "creditable_type"
571
- t.index ["creditable_id", "creditable_type"], name: "index_reimbursement_credits_on_creditable_id_and_type"
572
- t.index ["reimbursement_id"], name: "index_spree_reimbursement_credits_on_reimbursement_id"
573
- end
574
-
575
- create_table "spree_reimbursement_types", force: :cascade do |t|
576
- t.string "name"
577
- t.boolean "active", default: true
578
- t.boolean "mutable", default: true
579
- t.datetime "created_at", null: false
580
- t.datetime "updated_at", null: false
581
- t.string "type"
582
- t.index ["name"], name: "index_spree_reimbursement_types_on_name", unique: true
583
- t.index ["type"], name: "index_spree_reimbursement_types_on_type"
584
- end
585
-
586
- create_table "spree_reimbursements", force: :cascade do |t|
587
- t.string "number"
588
- t.string "reimbursement_status"
589
- t.integer "customer_return_id"
590
- t.integer "order_id"
591
- t.decimal "total", precision: 10, scale: 2
592
- t.datetime "created_at", null: false
593
- t.datetime "updated_at", null: false
594
- t.index ["customer_return_id"], name: "index_spree_reimbursements_on_customer_return_id"
595
- t.index ["number"], name: "index_spree_reimbursements_on_number", unique: true
596
- t.index ["order_id"], name: "index_spree_reimbursements_on_order_id"
597
- end
598
-
599
- create_table "spree_return_authorization_reasons", force: :cascade do |t|
600
- t.string "name"
601
- t.boolean "active", default: true
602
- t.boolean "mutable", default: true
603
- t.datetime "created_at", null: false
604
- t.datetime "updated_at", null: false
605
- t.index ["name"], name: "index_spree_return_authorization_reasons_on_name", unique: true
606
- end
607
-
608
- create_table "spree_return_authorizations", force: :cascade do |t|
609
- t.string "number"
610
- t.string "state"
611
- t.integer "order_id"
612
- t.text "memo"
613
- t.datetime "created_at"
614
- t.datetime "updated_at"
615
- t.integer "stock_location_id"
616
- t.integer "return_authorization_reason_id"
617
- t.index ["number"], name: "index_spree_return_authorizations_on_number", unique: true
618
- t.index ["order_id"], name: "index_spree_return_authorizations_on_order_id"
619
- t.index ["return_authorization_reason_id"], name: "index_return_authorizations_on_return_authorization_reason_id"
620
- t.index ["stock_location_id"], name: "index_spree_return_authorizations_on_stock_location_id"
621
- end
622
-
623
- create_table "spree_return_items", force: :cascade do |t|
624
- t.integer "return_authorization_id"
625
- t.integer "inventory_unit_id"
626
- t.integer "exchange_variant_id"
627
- t.datetime "created_at", null: false
628
- t.datetime "updated_at", null: false
629
- t.decimal "pre_tax_amount", precision: 12, scale: 4, default: "0.0", null: false
630
- t.decimal "included_tax_total", precision: 12, scale: 4, default: "0.0", null: false
631
- t.decimal "additional_tax_total", precision: 12, scale: 4, default: "0.0", null: false
632
- t.string "reception_status"
633
- t.string "acceptance_status"
634
- t.integer "customer_return_id"
635
- t.integer "reimbursement_id"
636
- t.text "acceptance_status_errors"
637
- t.integer "preferred_reimbursement_type_id"
638
- t.integer "override_reimbursement_type_id"
639
- t.boolean "resellable", default: true, null: false
640
- t.index ["customer_return_id"], name: "index_return_items_on_customer_return_id"
641
- t.index ["exchange_variant_id"], name: "index_spree_return_items_on_exchange_variant_id"
642
- t.index ["inventory_unit_id"], name: "index_spree_return_items_on_inventory_unit_id"
643
- t.index ["override_reimbursement_type_id"], name: "index_spree_return_items_on_override_reimbursement_type_id"
644
- t.index ["preferred_reimbursement_type_id"], name: "index_spree_return_items_on_preferred_reimbursement_type_id"
645
- t.index ["reimbursement_id"], name: "index_spree_return_items_on_reimbursement_id"
646
- t.index ["return_authorization_id"], name: "index_spree_return_items_on_return_authorization_id"
647
- end
648
-
649
- create_table "spree_role_users", force: :cascade do |t|
650
- t.integer "role_id"
651
- t.integer "user_id"
652
- t.index ["role_id"], name: "index_spree_role_users_on_role_id"
653
- t.index ["user_id"], name: "index_spree_role_users_on_user_id"
654
- end
655
-
656
- create_table "spree_roles", force: :cascade do |t|
657
- t.string "name"
658
- t.index ["name"], name: "index_spree_roles_on_name", unique: true
659
- end
660
-
661
- create_table "spree_shipments", force: :cascade do |t|
662
- t.string "tracking"
663
- t.string "number"
664
- t.decimal "cost", precision: 10, scale: 2, default: "0.0"
665
- t.datetime "shipped_at"
666
- t.integer "order_id"
667
- t.integer "address_id"
668
- t.string "state"
669
- t.datetime "created_at", null: false
670
- t.datetime "updated_at", null: false
671
- t.integer "stock_location_id"
672
- t.decimal "adjustment_total", precision: 10, scale: 2, default: "0.0"
673
- t.decimal "additional_tax_total", precision: 10, scale: 2, default: "0.0"
674
- t.decimal "promo_total", precision: 10, scale: 2, default: "0.0"
675
- t.decimal "included_tax_total", precision: 10, scale: 2, default: "0.0", null: false
676
- t.decimal "pre_tax_amount", precision: 12, scale: 4, default: "0.0", null: false
677
- t.decimal "taxable_adjustment_total", precision: 10, scale: 2, default: "0.0", null: false
678
- t.decimal "non_taxable_adjustment_total", precision: 10, scale: 2, default: "0.0", null: false
679
- t.index ["address_id"], name: "index_spree_shipments_on_address_id"
680
- t.index ["number"], name: "index_spree_shipments_on_number", unique: true
681
- t.index ["order_id"], name: "index_spree_shipments_on_order_id"
682
- t.index ["stock_location_id"], name: "index_spree_shipments_on_stock_location_id"
683
- end
684
-
685
- create_table "spree_shipping_categories", force: :cascade do |t|
686
- t.string "name"
687
- t.datetime "created_at", null: false
688
- t.datetime "updated_at", null: false
689
- t.index ["name"], name: "index_spree_shipping_categories_on_name"
690
- end
691
-
692
- create_table "spree_shipping_method_categories", force: :cascade do |t|
693
- t.integer "shipping_method_id", null: false
694
- t.integer "shipping_category_id", null: false
695
- t.datetime "created_at", null: false
696
- t.datetime "updated_at", null: false
697
- t.index ["shipping_category_id", "shipping_method_id"], name: "unique_spree_shipping_method_categories", unique: true
698
- t.index ["shipping_category_id"], name: "index_spree_shipping_method_categories_on_shipping_category_id"
699
- t.index ["shipping_method_id"], name: "index_spree_shipping_method_categories_on_shipping_method_id"
700
- end
701
-
702
- create_table "spree_shipping_method_zones", force: :cascade do |t|
703
- t.integer "shipping_method_id"
704
- t.integer "zone_id"
705
- t.index ["shipping_method_id"], name: "index_spree_shipping_method_zones_on_shipping_method_id"
706
- t.index ["zone_id"], name: "index_spree_shipping_method_zones_on_zone_id"
707
- end
708
-
709
- create_table "spree_shipping_methods", force: :cascade do |t|
710
- t.string "name"
711
- t.string "display_on"
712
- t.datetime "deleted_at"
713
- t.datetime "created_at", null: false
714
- t.datetime "updated_at", null: false
715
- t.string "tracking_url"
716
- t.string "admin_name"
717
- t.integer "tax_category_id"
718
- t.string "code"
719
- t.index ["deleted_at"], name: "index_spree_shipping_methods_on_deleted_at"
720
- t.index ["tax_category_id"], name: "index_spree_shipping_methods_on_tax_category_id"
721
- end
722
-
723
- create_table "spree_shipping_rates", force: :cascade do |t|
724
- t.integer "shipment_id"
725
- t.integer "shipping_method_id"
726
- t.boolean "selected", default: false
727
- t.decimal "cost", precision: 8, scale: 2, default: "0.0"
728
- t.datetime "created_at", null: false
729
- t.datetime "updated_at", null: false
730
- t.integer "tax_rate_id"
731
- t.index ["selected"], name: "index_spree_shipping_rates_on_selected"
732
- t.index ["shipment_id", "shipping_method_id"], name: "spree_shipping_rates_join_index", unique: true
733
- t.index ["shipment_id"], name: "index_spree_shipping_rates_on_shipment_id"
734
- t.index ["shipping_method_id"], name: "index_spree_shipping_rates_on_shipping_method_id"
735
- t.index ["tax_rate_id"], name: "index_spree_shipping_rates_on_tax_rate_id"
736
- end
737
-
738
- create_table "spree_state_changes", force: :cascade do |t|
739
- t.string "name"
740
- t.string "previous_state"
741
- t.integer "stateful_id"
742
- t.integer "user_id"
743
- t.string "stateful_type"
744
- t.string "next_state"
745
- t.datetime "created_at", null: false
746
- t.datetime "updated_at", null: false
747
- t.index ["stateful_id", "stateful_type"], name: "index_spree_state_changes_on_stateful_id_and_stateful_type"
748
- end
749
-
750
- create_table "spree_states", force: :cascade do |t|
751
- t.string "name"
752
- t.string "abbr"
753
- t.integer "country_id"
754
- t.datetime "updated_at"
755
- t.index ["country_id"], name: "index_spree_states_on_country_id"
756
- end
757
-
758
- create_table "spree_stock_items", force: :cascade do |t|
759
- t.integer "stock_location_id"
760
- t.integer "variant_id"
761
- t.integer "count_on_hand", default: 0, null: false
762
- t.datetime "created_at", null: false
763
- t.datetime "updated_at", null: false
764
- t.boolean "backorderable", default: false
765
- t.datetime "deleted_at"
766
- t.index ["backorderable"], name: "index_spree_stock_items_on_backorderable"
767
- t.index ["deleted_at"], name: "index_spree_stock_items_on_deleted_at"
768
- t.index ["stock_location_id", "variant_id"], name: "stock_item_by_loc_and_var_id"
769
- t.index ["stock_location_id"], name: "index_spree_stock_items_on_stock_location_id"
770
- t.index ["variant_id"], name: "index_spree_stock_items_on_variant_id"
771
- end
772
-
773
- create_table "spree_stock_locations", force: :cascade do |t|
774
- t.string "name"
775
- t.datetime "created_at", null: false
776
- t.datetime "updated_at", null: false
777
- t.boolean "default", default: false, null: false
778
- t.string "address1"
779
- t.string "address2"
780
- t.string "city"
781
- t.integer "state_id"
782
- t.string "state_name"
783
- t.integer "country_id"
784
- t.string "zipcode"
785
- t.string "phone"
786
- t.boolean "active", default: true
787
- t.boolean "backorderable_default", default: false
788
- t.boolean "propagate_all_variants", default: true
789
- t.string "admin_name"
790
- t.index ["active"], name: "index_spree_stock_locations_on_active"
791
- t.index ["backorderable_default"], name: "index_spree_stock_locations_on_backorderable_default"
792
- t.index ["country_id"], name: "index_spree_stock_locations_on_country_id"
793
- t.index ["propagate_all_variants"], name: "index_spree_stock_locations_on_propagate_all_variants"
794
- t.index ["state_id"], name: "index_spree_stock_locations_on_state_id"
795
- end
796
-
797
- create_table "spree_stock_movements", force: :cascade do |t|
798
- t.integer "stock_item_id"
799
- t.integer "quantity", default: 0
800
- t.string "action"
801
- t.datetime "created_at", null: false
802
- t.datetime "updated_at", null: false
803
- t.string "originator_type"
804
- t.integer "originator_id"
805
- t.index ["originator_id", "originator_type"], name: "index_stock_movements_on_originator_id_and_originator_type"
806
- t.index ["stock_item_id"], name: "index_spree_stock_movements_on_stock_item_id"
807
- end
808
-
809
- create_table "spree_stock_transfers", force: :cascade do |t|
810
- t.string "type"
811
- t.string "reference"
812
- t.integer "source_location_id"
813
- t.integer "destination_location_id"
814
- t.datetime "created_at", null: false
815
- t.datetime "updated_at", null: false
816
- t.string "number"
817
- t.index ["destination_location_id"], name: "index_spree_stock_transfers_on_destination_location_id"
818
- t.index ["number"], name: "index_spree_stock_transfers_on_number", unique: true
819
- t.index ["source_location_id"], name: "index_spree_stock_transfers_on_source_location_id"
820
- end
821
-
822
- create_table "spree_store_credit_categories", force: :cascade do |t|
823
- t.string "name"
824
- t.datetime "created_at", null: false
825
- t.datetime "updated_at", null: false
826
- end
827
-
828
- create_table "spree_store_credit_events", force: :cascade do |t|
829
- t.integer "store_credit_id", null: false
830
- t.string "action", null: false
831
- t.decimal "amount", precision: 8, scale: 2
832
- t.string "authorization_code", null: false
833
- t.decimal "user_total_amount", precision: 8, scale: 2, default: "0.0", null: false
834
- t.integer "originator_id"
835
- t.string "originator_type"
836
- t.datetime "deleted_at"
837
- t.datetime "created_at", null: false
838
- t.datetime "updated_at", null: false
839
- t.index ["originator_id", "originator_type"], name: "spree_store_credit_events_originator"
840
- t.index ["store_credit_id"], name: "index_spree_store_credit_events_on_store_credit_id"
841
- end
842
-
843
- create_table "spree_store_credit_types", force: :cascade do |t|
844
- t.string "name"
845
- t.integer "priority"
846
- t.datetime "created_at", null: false
847
- t.datetime "updated_at", null: false
848
- t.index ["priority"], name: "index_spree_store_credit_types_on_priority"
849
- end
850
-
851
- create_table "spree_store_credits", force: :cascade do |t|
852
- t.integer "user_id"
853
- t.integer "category_id"
854
- t.integer "created_by_id"
855
- t.decimal "amount", precision: 8, scale: 2, default: "0.0", null: false
856
- t.decimal "amount_used", precision: 8, scale: 2, default: "0.0", null: false
857
- t.text "memo"
858
- t.datetime "deleted_at"
859
- t.string "currency"
860
- t.decimal "amount_authorized", precision: 8, scale: 2, default: "0.0", null: false
861
- t.integer "originator_id"
862
- t.string "originator_type"
863
- t.integer "type_id"
864
- t.datetime "created_at", null: false
865
- t.datetime "updated_at", null: false
866
- t.index ["deleted_at"], name: "index_spree_store_credits_on_deleted_at"
867
- t.index ["originator_id", "originator_type"], name: "spree_store_credits_originator"
868
- t.index ["type_id"], name: "index_spree_store_credits_on_type_id"
869
- t.index ["user_id"], name: "index_spree_store_credits_on_user_id"
870
- end
871
-
872
- create_table "spree_stores", force: :cascade do |t|
873
- t.string "name"
874
- t.string "url"
875
- t.text "meta_description"
876
- t.text "meta_keywords"
877
- t.string "seo_title"
878
- t.string "mail_from_address"
879
- t.string "default_currency"
880
- t.string "code"
881
- t.boolean "default", default: false, null: false
882
- t.datetime "created_at", null: false
883
- t.datetime "updated_at", null: false
884
- t.index ["code"], name: "index_spree_stores_on_code", unique: true
885
- t.index ["default"], name: "index_spree_stores_on_default"
886
- t.index ["url"], name: "index_spree_stores_on_url"
887
- end
888
-
889
- create_table "spree_taggings", force: :cascade do |t|
890
- t.integer "tag_id"
891
- t.string "taggable_type"
892
- t.integer "taggable_id"
893
- t.string "tagger_type"
894
- t.integer "tagger_id"
895
- t.string "context", limit: 128
896
- t.datetime "created_at"
897
- t.index ["context"], name: "index_spree_taggings_on_context"
898
- t.index ["tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type"], name: "spree_taggings_idx", unique: true
899
- t.index ["tag_id"], name: "index_spree_taggings_on_tag_id"
900
- t.index ["taggable_id", "taggable_type", "tagger_id", "context"], name: "spree_taggings_idy"
901
- t.index ["taggable_id"], name: "index_spree_taggings_on_taggable_id"
902
- t.index ["taggable_type"], name: "index_spree_taggings_on_taggable_type"
903
- t.index ["tagger_id", "tagger_type"], name: "index_spree_taggings_on_tagger_id_and_tagger_type"
904
- t.index ["tagger_id"], name: "index_spree_taggings_on_tagger_id"
905
- end
906
-
907
- create_table "spree_tags", force: :cascade do |t|
908
- t.string "name"
909
- t.integer "taggings_count", default: 0
910
- t.index ["name"], name: "index_spree_tags_on_name", unique: true
911
- end
912
-
913
- create_table "spree_tax_categories", force: :cascade do |t|
914
- t.string "name"
915
- t.string "description"
916
- t.boolean "is_default", default: false
917
- t.datetime "deleted_at"
918
- t.datetime "created_at", null: false
919
- t.datetime "updated_at", null: false
920
- t.string "tax_code"
921
- t.index ["deleted_at"], name: "index_spree_tax_categories_on_deleted_at"
922
- t.index ["is_default"], name: "index_spree_tax_categories_on_is_default"
923
- end
924
-
925
- create_table "spree_tax_rates", force: :cascade do |t|
926
- t.decimal "amount", precision: 8, scale: 5
927
- t.integer "zone_id"
928
- t.integer "tax_category_id"
929
- t.boolean "included_in_price", default: false
930
- t.datetime "created_at", null: false
931
- t.datetime "updated_at", null: false
932
- t.string "name"
933
- t.boolean "show_rate_in_label", default: true
934
- t.datetime "deleted_at"
935
- t.index ["deleted_at"], name: "index_spree_tax_rates_on_deleted_at"
936
- t.index ["included_in_price"], name: "index_spree_tax_rates_on_included_in_price"
937
- t.index ["show_rate_in_label"], name: "index_spree_tax_rates_on_show_rate_in_label"
938
- t.index ["tax_category_id"], name: "index_spree_tax_rates_on_tax_category_id"
939
- t.index ["zone_id"], name: "index_spree_tax_rates_on_zone_id"
940
- end
941
-
942
- create_table "spree_taxonomies", force: :cascade do |t|
943
- t.string "name", null: false
944
- t.datetime "created_at", null: false
945
- t.datetime "updated_at", null: false
946
- t.integer "position", default: 0
947
- t.index ["position"], name: "index_spree_taxonomies_on_position"
948
- end
949
-
950
- create_table "spree_taxons", force: :cascade do |t|
951
- t.integer "parent_id"
952
- t.integer "position", default: 0
953
- t.string "name", null: false
954
- t.string "permalink"
955
- t.integer "taxonomy_id"
956
- t.integer "lft"
957
- t.integer "rgt"
958
- t.text "description"
959
- t.datetime "created_at", null: false
960
- t.datetime "updated_at", null: false
961
- t.string "meta_title"
962
- t.string "meta_description"
963
- t.string "meta_keywords"
964
- t.integer "depth"
965
- t.index ["lft"], name: "index_spree_taxons_on_lft"
966
- t.index ["name"], name: "index_spree_taxons_on_name"
967
- t.index ["parent_id"], name: "index_taxons_on_parent_id"
968
- t.index ["permalink"], name: "index_taxons_on_permalink"
969
- t.index ["position"], name: "index_spree_taxons_on_position"
970
- t.index ["rgt"], name: "index_spree_taxons_on_rgt"
971
- t.index ["taxonomy_id"], name: "index_taxons_on_taxonomy_id"
972
- end
973
-
974
- create_table "spree_trackers", force: :cascade do |t|
975
- t.string "analytics_id"
976
- t.boolean "active", default: true
977
- t.datetime "created_at", null: false
978
- t.datetime "updated_at", null: false
979
- t.integer "engine", default: 0, null: false
980
- t.index ["active"], name: "index_spree_trackers_on_active"
981
- end
982
-
983
- create_table "spree_users", force: :cascade do |t|
984
- t.string "encrypted_password", limit: 128
985
- t.string "password_salt", limit: 128
986
- t.string "email"
987
- t.string "remember_token"
988
- t.string "persistence_token"
989
- t.string "reset_password_token"
990
- t.string "perishable_token"
991
- t.integer "sign_in_count", default: 0, null: false
992
- t.integer "failed_attempts", default: 0, null: false
993
- t.datetime "last_request_at"
994
- t.datetime "current_sign_in_at"
995
- t.datetime "last_sign_in_at"
996
- t.string "current_sign_in_ip"
997
- t.string "last_sign_in_ip"
998
- t.string "login"
999
- t.integer "ship_address_id"
1000
- t.integer "bill_address_id"
1001
- t.string "authentication_token"
1002
- t.string "unlock_token"
1003
- t.datetime "locked_at"
1004
- t.datetime "remember_created_at"
1005
- t.datetime "reset_password_sent_at"
1006
- t.datetime "created_at", null: false
1007
- t.datetime "updated_at", null: false
1008
- end
1009
-
1010
- create_table "spree_variants", force: :cascade do |t|
1011
- t.string "sku", default: "", null: false
1012
- t.decimal "weight", precision: 8, scale: 2, default: "0.0"
1013
- t.decimal "height", precision: 8, scale: 2
1014
- t.decimal "width", precision: 8, scale: 2
1015
- t.decimal "depth", precision: 8, scale: 2
1016
- t.datetime "deleted_at"
1017
- t.boolean "is_master", default: false
1018
- t.integer "product_id"
1019
- t.decimal "cost_price", precision: 10, scale: 2
1020
- t.integer "position"
1021
- t.string "cost_currency"
1022
- t.boolean "track_inventory", default: true
1023
- t.integer "tax_category_id"
1024
- t.datetime "updated_at", null: false
1025
- t.datetime "discontinue_on"
1026
- t.datetime "created_at", null: false
1027
- t.index ["deleted_at"], name: "index_spree_variants_on_deleted_at"
1028
- t.index ["discontinue_on"], name: "index_spree_variants_on_discontinue_on"
1029
- t.index ["is_master"], name: "index_spree_variants_on_is_master"
1030
- t.index ["position"], name: "index_spree_variants_on_position"
1031
- t.index ["product_id"], name: "index_spree_variants_on_product_id"
1032
- t.index ["sku"], name: "index_spree_variants_on_sku"
1033
- t.index ["tax_category_id"], name: "index_spree_variants_on_tax_category_id"
1034
- t.index ["track_inventory"], name: "index_spree_variants_on_track_inventory"
1035
- end
1036
-
1037
- create_table "spree_zone_members", force: :cascade do |t|
1038
- t.string "zoneable_type"
1039
- t.integer "zoneable_id"
1040
- t.integer "zone_id"
1041
- t.datetime "created_at", null: false
1042
- t.datetime "updated_at", null: false
1043
- t.index ["zone_id"], name: "index_spree_zone_members_on_zone_id"
1044
- t.index ["zoneable_id", "zoneable_type"], name: "index_spree_zone_members_on_zoneable_id_and_zoneable_type"
1045
- end
1046
-
1047
- create_table "spree_zones", force: :cascade do |t|
1048
- t.string "name"
1049
- t.string "description"
1050
- t.boolean "default_tax", default: false
1051
- t.integer "zone_members_count", default: 0
1052
- t.datetime "created_at", null: false
1053
- t.datetime "updated_at", null: false
1054
- t.string "kind"
1055
- t.index ["default_tax"], name: "index_spree_zones_on_default_tax"
1056
- t.index ["kind"], name: "index_spree_zones_on_kind"
1057
- end
1058
-
1059
26
  end