goca-spree-core 3.1.14.rails.5.2.8.0 → 3.1.14.rails.5.2.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (230) hide show
  1. checksums.yaml +4 -4
  2. data/app/models/spree/credit_card.rb +1 -1
  3. data/app/models/spree/promotion_rule_user.rb +1 -1
  4. data/app/models/spree/role_user.rb +1 -1
  5. data/app/models/spree/state_change.rb +1 -1
  6. data/db/migrate/20120831092320_spree_one_two.rb +1 -1
  7. data/db/migrate/20120831092359_spree_promo_one_two.rb +1 -1
  8. data/db/migrate/20120905145253_add_tax_rate_label.rb +1 -1
  9. data/db/migrate/20120905151823_add_toggle_tax_rate_display.rb +1 -1
  10. data/db/migrate/20120929093553_remove_unused_preference_columns.rb +1 -1
  11. data/db/migrate/20121009142519_add_lock_version_to_variant.rb +1 -1
  12. data/db/migrate/20121010142909_add_states_required_to_countries.rb +1 -1
  13. data/db/migrate/20121012071449_add_on_demand_to_product_and_variant.rb +1 -1
  14. data/db/migrate/20121017010007_remove_not_null_constraint_from_products_on_hand.rb +1 -1
  15. data/db/migrate/20121031162139_split_prices_from_variants.rb +1 -1
  16. data/db/migrate/20121107003422_remove_not_null_from_spree_prices_amount.rb +1 -1
  17. data/db/migrate/20121107184631_add_currency_to_line_items.rb +1 -1
  18. data/db/migrate/20121107194006_add_currency_to_orders.rb +1 -1
  19. data/db/migrate/20121109173623_add_cost_currency_to_variants.rb +1 -1
  20. data/db/migrate/20121111231553_remove_display_on_from_payment_methods.rb +1 -1
  21. data/db/migrate/20121124203911_add_position_to_taxonomies.rb +1 -1
  22. data/db/migrate/20121126040517_add_last_ip_to_spree_orders.rb +1 -1
  23. data/db/migrate/20121213162028_add_state_to_spree_adjustments.rb +1 -1
  24. data/db/migrate/20130114053446_add_display_on_to_spree_payment_methods.rb +1 -1
  25. data/db/migrate/20130120201805_add_position_to_product_properties.spree.rb +1 -1
  26. data/db/migrate/20130203232234_add_identifier_to_spree_payments.rb +1 -1
  27. data/db/migrate/20130207155350_add_order_id_index_to_payments.rb +1 -1
  28. data/db/migrate/20130208032954_add_primary_to_spree_products_taxons.rb +1 -1
  29. data/db/migrate/20130211190146_create_spree_stock_items.rb +1 -1
  30. data/db/migrate/20130211191120_create_spree_stock_locations.rb +1 -1
  31. data/db/migrate/20130213191427_create_default_stock.rb +1 -1
  32. data/db/migrate/20130222032153_add_order_id_index_to_shipments.rb +1 -1
  33. data/db/migrate/20130226032817_change_meta_description_on_spree_products_to_text.rb +1 -1
  34. data/db/migrate/20130226191231_add_stock_location_id_to_spree_shipments.rb +1 -1
  35. data/db/migrate/20130227143905_add_pending_to_inventory_unit.rb +1 -1
  36. data/db/migrate/20130228164411_remove_on_demand_from_product_and_variant.rb +1 -1
  37. data/db/migrate/20130228210442_create_shipping_method_zone.rb +1 -1
  38. data/db/migrate/20130301162745_remove_shipping_category_id_from_shipping_method.rb +1 -1
  39. data/db/migrate/20130301162924_create_shipping_method_categories.rb +1 -1
  40. data/db/migrate/20130301205200_add_tracking_url_to_spree_shipping_methods.rb +1 -1
  41. data/db/migrate/20130304162240_create_spree_shipping_rates.rb +1 -1
  42. data/db/migrate/20130304192936_remove_category_match_attributes_from_shipping_method.rb +1 -1
  43. data/db/migrate/20130305143310_create_stock_movements.rb +1 -1
  44. data/db/migrate/20130306181701_add_address_fields_to_stock_location.rb +1 -1
  45. data/db/migrate/20130306191917_add_active_field_to_stock_locations.rb +1 -1
  46. data/db/migrate/20130306195650_add_backorderable_to_stock_item.rb +1 -1
  47. data/db/migrate/20130307161754_add_default_quantity_to_stock_movement.rb +1 -1
  48. data/db/migrate/20130318151756_add_source_and_destination_to_stock_movements.rb +1 -1
  49. data/db/migrate/20130319062004_change_orders_total_precision.rb +1 -1
  50. data/db/migrate/20130319063911_change_spree_payments_amount_precision.rb +1 -1
  51. data/db/migrate/20130319064308_change_spree_return_authorization_amount_precision.rb +1 -1
  52. data/db/migrate/20130319082943_change_adjustments_amount_precision.rb +1 -1
  53. data/db/migrate/20130319183250_add_originator_to_stock_movement.rb +1 -1
  54. data/db/migrate/20130319190507_drop_source_and_destination_from_stock_movement.rb +1 -1
  55. data/db/migrate/20130325163316_migrate_inventory_unit_sold_to_on_hand.rb +1 -1
  56. data/db/migrate/20130326175857_add_stock_location_to_rma.rb +1 -1
  57. data/db/migrate/20130328130308_update_shipment_state_for_canceled_orders.rb +1 -1
  58. data/db/migrate/20130328195253_add_seo_metas_to_taxons.rb +1 -1
  59. data/db/migrate/20130329134939_remove_stock_item_and_variant_lock.rb +1 -1
  60. data/db/migrate/20130413230529_add_name_to_spree_credit_cards.rb +1 -1
  61. data/db/migrate/20130414000512_update_name_fields_on_spree_credit_cards.rb +1 -1
  62. data/db/migrate/20130417120034_add_index_to_source_columns_on_adjustments.rb +1 -1
  63. data/db/migrate/20130417120035_update_adjustment_states.rb +1 -1
  64. data/db/migrate/20130417123427_add_shipping_rates_to_shipments.rb +1 -1
  65. data/db/migrate/20130418125341_create_spree_stock_transfers.rb +1 -1
  66. data/db/migrate/20130423110707_drop_products_count_on_hand.rb +1 -1
  67. data/db/migrate/20130423223847_set_default_shipping_rate_cost.rb +1 -1
  68. data/db/migrate/20130509115210_add_number_to_stock_transfer.rb +1 -1
  69. data/db/migrate/20130514151929_add_sku_index_to_spree_variants.rb +1 -1
  70. data/db/migrate/20130515180736_add_backorderable_default_to_spree_stock_location.rb +1 -1
  71. data/db/migrate/20130516151222_add_propage_all_variants_to_spree_stock_location.rb +1 -1
  72. data/db/migrate/20130611054351_rename_shipping_methods_zones_to_spree_shipping_methods_zones.rb +1 -1
  73. data/db/migrate/20130611185927_add_user_id_index_to_spree_orders.rb +1 -1
  74. data/db/migrate/20130618041418_add_updated_at_to_spree_countries.rb +1 -1
  75. data/db/migrate/20130619012236_add_updated_at_to_spree_states.rb +1 -1
  76. data/db/migrate/20130626232741_add_cvv_result_code_and_cvv_result_message_to_spree_payments.rb +1 -1
  77. data/db/migrate/20130628021056_add_unique_index_to_permalink_on_spree_products.rb +1 -1
  78. data/db/migrate/20130628022817_add_unique_index_to_orders_shipments_and_stock_transfers.rb +1 -1
  79. data/db/migrate/20130708052307_add_deleted_at_to_spree_tax_rates.rb +1 -1
  80. data/db/migrate/20130711200933_remove_lock_version_from_inventory_units.rb +1 -1
  81. data/db/migrate/20130718042445_add_cost_price_to_line_item.rb +1 -1
  82. data/db/migrate/20130718233855_set_backorderable_to_default_to_false.rb +1 -1
  83. data/db/migrate/20130725031716_add_created_by_id_to_spree_orders.rb +1 -1
  84. data/db/migrate/20130729214043_index_completed_at_on_spree_orders.rb +1 -1
  85. data/db/migrate/20130802014537_add_tax_category_id_to_spree_line_items.rb +1 -1
  86. data/db/migrate/20130802022321_migrate_tax_categories_to_line_items.rb +1 -1
  87. data/db/migrate/20130806022521_drop_spree_mail_methods.rb +1 -1
  88. data/db/migrate/20130806145853_set_default_stock_location_on_shipments.rb +1 -1
  89. data/db/migrate/20130807024301_upgrade_adjustments.rb +1 -1
  90. data/db/migrate/20130807024302_rename_adjustment_fields.rb +1 -1
  91. data/db/migrate/20130809164245_add_admin_name_column_to_spree_shipping_methods.rb +1 -1
  92. data/db/migrate/20130809164330_add_admin_name_column_to_spree_stock_locations.rb +1 -1
  93. data/db/migrate/20130813004002_add_shipment_total_to_spree_orders.rb +1 -1
  94. data/db/migrate/20130813140619_expand_order_number_size.rb +1 -1
  95. data/db/migrate/20130813232134_rename_activators_to_promotions.rb +1 -1
  96. data/db/migrate/20130815000406_add_adjustment_total_to_line_items.rb +1 -1
  97. data/db/migrate/20130815024413_add_adjustment_total_to_shipments.rb +1 -1
  98. data/db/migrate/20130826062534_add_depth_to_spree_taxons.rb +1 -1
  99. data/db/migrate/20130828234942_add_tax_total_to_line_items_shipments_and_orders.rb +1 -1
  100. data/db/migrate/20130830001033_add_shipping_category_to_shipping_methods_and_products.rb +1 -1
  101. data/db/migrate/20130830001159_migrate_old_shipping_calculators.rb +1 -1
  102. data/db/migrate/20130903183026_add_code_to_spree_promotion_rules.rb +1 -1
  103. data/db/migrate/20130909115621_change_states_required_for_countries.rb +1 -1
  104. data/db/migrate/20130915032339_add_deleted_at_to_spree_stock_items.rb +1 -1
  105. data/db/migrate/20130917024658_remove_promotions_event_name_field.rb +1 -1
  106. data/db/migrate/20130924040529_add_promo_total_to_line_items_and_shipments_and_orders.rb +1 -1
  107. data/db/migrate/20131001013410_remove_unused_credit_card_fields.rb +1 -1
  108. data/db/migrate/20131026154747_add_track_inventory_to_variant.rb +1 -1
  109. data/db/migrate/20131107132123_add_tax_category_to_variants.rb +1 -1
  110. data/db/migrate/20131113035136_add_channel_to_spree_orders.rb +1 -1
  111. data/db/migrate/20131118043959_add_included_to_adjustments.rb +1 -1
  112. data/db/migrate/20131118050234_rename_tax_total_fields.rb +1 -1
  113. data/db/migrate/20131118183431_add_line_item_id_to_spree_inventory_units.rb +1 -1
  114. data/db/migrate/20131120234456_add_updated_at_to_variants.rb +1 -1
  115. data/db/migrate/20131127001002_add_position_to_classifications.rb +1 -1
  116. data/db/migrate/20131211112807_create_spree_orders_promotions.rb +1 -1
  117. data/db/migrate/20131211192741_unique_shipping_method_categories.rb +1 -1
  118. data/db/migrate/20131218054603_add_item_count_to_spree_orders.rb +1 -1
  119. data/db/migrate/20140106065820_remove_value_type_from_spree_preferences.rb +1 -1
  120. data/db/migrate/20140106224208_rename_permalink_to_slug_for_products.rb +1 -1
  121. data/db/migrate/20140120160805_add_index_to_variant_id_and_currency_on_prices.rb +1 -1
  122. data/db/migrate/20140124023232_rename_activator_id_in_rules_and_actions_to_promotion_id.rb +1 -1
  123. data/db/migrate/20140129024326_add_deleted_at_to_spree_prices.rb +1 -1
  124. data/db/migrate/20140203161722_add_approver_id_and_approved_at_to_orders.rb +1 -1
  125. data/db/migrate/20140204115338_add_confirmation_delivered_to_spree_orders.rb +1 -1
  126. data/db/migrate/20140204192230_add_auto_capture_to_payment_methods.rb +1 -1
  127. data/db/migrate/20140205120320_create_spree_payment_capture_events.rb +1 -1
  128. data/db/migrate/20140205144710_add_uncaptured_amount_to_payments.rb +1 -1
  129. data/db/migrate/20140205181631_default_variant_weight_to_zero.rb +1 -1
  130. data/db/migrate/20140207085910_add_tax_category_id_to_shipping_methods.rb +1 -1
  131. data/db/migrate/20140207093021_add_tax_rate_id_to_shipping_rates.rb +1 -1
  132. data/db/migrate/20140211040159_add_pre_tax_amount_to_line_items_and_shipments.rb +1 -1
  133. data/db/migrate/20140213184916_add_more_indexes.rb +1 -1
  134. data/db/migrate/20140219060952_add_considered_risky_to_orders.rb +1 -1
  135. data/db/migrate/20140227112348_add_preference_store_to_everything.rb +1 -1
  136. data/db/migrate/20140307235515_add_user_id_to_spree_credit_cards.rb +1 -1
  137. data/db/migrate/20140309023735_migrate_old_preferences.rb +1 -1
  138. data/db/migrate/20140309024355_create_spree_stores.rb +1 -1
  139. data/db/migrate/20140309033438_create_store_from_preferences.rb +1 -1
  140. data/db/migrate/20140315053743_add_timestamps_to_spree_assets.rb +1 -1
  141. data/db/migrate/20140318191500_create_spree_taxons_promotion_rules.rb +1 -1
  142. data/db/migrate/20140331100557_add_additional_store_fields.rb +1 -1
  143. data/db/migrate/20140410141842_add_many_missing_indexes.rb +1 -1
  144. data/db/migrate/20140410150358_correct_some_polymorphic_index_and_add_more_missing.rb +1 -1
  145. data/db/migrate/20140415041315_add_user_id_created_by_id_index_to_order.rb +1 -1
  146. data/db/migrate/20140508151342_change_spree_price_amount_precision.rb +1 -1
  147. data/db/migrate/20140518174634_add_token_to_spree_orders.rb +1 -1
  148. data/db/migrate/20140530024945_move_order_token_from_tokenized_permission.rb +1 -1
  149. data/db/migrate/20140601011216_set_shipment_total_for_users_upgrading.rb +1 -1
  150. data/db/migrate/20140604135309_drop_credit_card_first_name_and_last_name.rb +1 -1
  151. data/db/migrate/20140609201656_add_deleted_at_to_spree_promotion_actions.rb +1 -1
  152. data/db/migrate/20140616202624_remove_uncaptured_amount_from_spree_payments.rb +1 -1
  153. data/db/migrate/20140625214618_create_spree_refunds.rb +1 -1
  154. data/db/migrate/20140702140656_create_spree_return_authorization_inventory_unit.rb +1 -1
  155. data/db/migrate/20140707125621_rename_return_authorization_inventory_unit_to_return_items.rb +1 -1
  156. data/db/migrate/20140709160534_backfill_line_item_pre_tax_amount.rb +1 -1
  157. data/db/migrate/20140710041921_recreate_spree_return_authorizations.rb +1 -1
  158. data/db/migrate/20140710181204_add_amount_fields_to_return_items.rb +1 -1
  159. data/db/migrate/20140710190048_drop_return_authorization_amount.rb +1 -1
  160. data/db/migrate/20140713140455_create_spree_return_authorization_reasons.rb +1 -1
  161. data/db/migrate/20140713140527_create_spree_refund_reasons.rb +1 -1
  162. data/db/migrate/20140713142214_rename_return_authorization_reason.rb +1 -1
  163. data/db/migrate/20140715182625_create_spree_promotion_categories.rb +1 -1
  164. data/db/migrate/20140716204111_drop_received_at_on_return_items.rb +1 -1
  165. data/db/migrate/20140716212330_add_reception_and_acceptance_status_to_return_items.rb +1 -1
  166. data/db/migrate/20140717155155_create_default_refund_reason.rb +1 -1
  167. data/db/migrate/20140717185932_add_default_to_spree_stock_locations.rb +1 -1
  168. data/db/migrate/20140718133010_create_spree_customer_returns.rb +1 -1
  169. data/db/migrate/20140718133349_add_customer_return_id_to_return_item.rb +1 -1
  170. data/db/migrate/20140718195325_create_friendly_id_slugs.rb +1 -1
  171. data/db/migrate/20140723004419_rename_spree_refund_return_authorization_id.rb +1 -1
  172. data/db/migrate/20140723152808_increase_return_item_pre_tax_amount_precision.rb +1 -1
  173. data/db/migrate/20140723214541_copy_product_slugs_to_slug_history.rb +1 -1
  174. data/db/migrate/20140725131539_create_spree_reimbursements.rb +1 -1
  175. data/db/migrate/20140728225422_add_promotionable_to_spree_products.rb +1 -1
  176. data/db/migrate/20140729133613_add_exchange_inventory_unit_foreign_keys.rb +1 -1
  177. data/db/migrate/20140730155938_add_acceptance_status_errors_to_return_item.rb +1 -1
  178. data/db/migrate/20140731150017_create_spree_reimbursement_types.rb +1 -1
  179. data/db/migrate/20140804185157_add_default_to_shipment_cost.rb +1 -1
  180. data/db/migrate/20140805171035_add_default_to_spree_credit_cards.rb +1 -1
  181. data/db/migrate/20140805171219_make_existing_credit_cards_default.rb +1 -1
  182. data/db/migrate/20140806144901_add_type_to_reimbursement_type.rb +1 -1
  183. data/db/migrate/20140808184039_create_spree_reimbursement_credits.rb +1 -1
  184. data/db/migrate/20140827170513_add_meta_title_to_spree_products.rb +1 -1
  185. data/db/migrate/20140911173301_add_kind_to_zone.rb +1 -1
  186. data/db/migrate/20140924164824_add_code_to_spree_tax_categories.rb +1 -1
  187. data/db/migrate/20140927193717_default_pre_tax_amount_should_be_zero.rb +1 -1
  188. data/db/migrate/20141002191113_add_code_to_spree_shipping_methods.rb +1 -1
  189. data/db/migrate/20141007230328_add_cancel_audit_fields_to_spree_orders.rb +1 -1
  190. data/db/migrate/20141009204607_add_store_id_to_orders.rb +1 -1
  191. data/db/migrate/20141012083513_create_spree_taxons_prototypes.rb +1 -1
  192. data/db/migrate/20141021194502_add_state_lock_version_to_order.rb +1 -1
  193. data/db/migrate/20141023005240_add_counter_cache_from_spree_variants_to_spree_stock_items.rb +1 -1
  194. data/db/migrate/20141101231208_fix_adjustment_order_presence.rb +1 -1
  195. data/db/migrate/20141105213646_update_classifications_positions.rb +1 -1
  196. data/db/migrate/20141120135441_add_guest_token_index_to_spree_orders.rb +1 -1
  197. data/db/migrate/20141215232040_remove_token_permissions_table.rb +1 -1
  198. data/db/migrate/20141215235502_remove_extra_products_slug_index.rb +1 -1
  199. data/db/migrate/20141217215630_update_product_slug_index.rb +1 -1
  200. data/db/migrate/20141218025915_rename_identifier_to_number_for_payment.rb +1 -1
  201. data/db/migrate/20150118210639_create_spree_store_credits.rb +1 -1
  202. data/db/migrate/20150118211500_create_spree_store_credit_categories.rb +1 -1
  203. data/db/migrate/20150118212051_create_spree_store_credit_events.rb +1 -1
  204. data/db/migrate/20150118212101_create_spree_store_credit_types.rb +1 -1
  205. data/db/migrate/20150121022521_remove_environment_from_payment_method.rb +1 -1
  206. data/db/migrate/20150122145607_add_resellable_to_return_items.rb +1 -1
  207. data/db/migrate/20150122202432_add_code_to_spree_promotion_categories.rb +1 -1
  208. data/db/migrate/20150128032538_remove_environment_from_tracker.rb +1 -1
  209. data/db/migrate/20150128060325_remove_spree_configurations.rb +1 -1
  210. data/db/migrate/20150216173445_add_index_to_spree_stock_items_variant_id.rb +1 -1
  211. data/db/migrate/20150309161154_ensure_payments_have_numbers.rb +1 -1
  212. data/db/migrate/20150314013438_add_missing_indexes_on_spree_tables.rb +1 -1
  213. data/db/migrate/20150317174308_remove_duplicated_indexes_from_multi_columns.rb +1 -1
  214. data/db/migrate/20150324104002_remove_user_index_from_spree_state_changes.rb +1 -1
  215. data/db/migrate/20150515211137_fix_adjustment_order_id.rb +1 -1
  216. data/db/migrate/20150522071831_add_position_to_spree_payment_methods.rb +1 -1
  217. data/db/migrate/20150522181728_add_deleted_at_to_friendly_id_slugs.rb +1 -1
  218. data/db/migrate/20150609093816_increase_scale_on_pre_tax_amounts.rb +1 -1
  219. data/db/migrate/20150626181949_add_taxable_adjustment_total_to_line_item.rb +1 -1
  220. data/db/migrate/20150627090949_migrate_payment_methods_display.rb +1 -1
  221. data/db/migrate/20150707204155_enable_acts_as_paranoid_on_calculators.rb +1 -1
  222. data/db/migrate/20150714154102_spree_payment_method_store_credits.rb +1 -1
  223. data/db/migrate/20150726141425_rename_has_and_belongs_to_associations_to_model_names.rb +1 -1
  224. data/db/migrate/20150727191614_spree_store_credit_types.rb +1 -1
  225. data/db/migrate/20150819154308_add_discontinued_to_products_and_variants.rb +1 -1
  226. data/db/migrate/20151220072838_remove_shipping_method_id_from_spree_orders.rb +1 -1
  227. data/db/migrate/20160207191757_add_id_column_to_earlier_habtm_tables.rb +1 -1
  228. data/db/migrate/20160219165458_add_indexes.rb +1 -1
  229. data/lib/spree/core/version.rb +1 -1
  230. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1d4b59e0c12576b7b1c2806c68cbf035b5a894913120f6cd8a44d3fe75683683
4
- data.tar.gz: 3fd66d3a6c2210c2a8fd5f0d83e9a9088a4b9e836ef63daa04794d26fc8210cc
3
+ metadata.gz: 9f3331d9f7e89b14f603b6165803fa160563e2554b5b77746e6c5a58a865daab
4
+ data.tar.gz: 8550d807167878125507614360168cf2872009fc94b43ea54ef3593f8e485345
5
5
  SHA512:
6
- metadata.gz: b70622b6d6248b274e93fe1b3126ad335216b25a6516a9c9c3eb4eb08a60a8134666e3c86bcd486d29ad2bff02bb8aae65ce7f282d75d0709d26c94d0a3ea28a
7
- data.tar.gz: 0df8efcccb0c97d4c1351a1693c03b0d0e793ce8c8befcf82925f73a5aa880e77330c052eba7c1565ba4eaa4806691c04538fccb7a2c19f9d55ff84cb80d4de6
6
+ metadata.gz: 1163e3ee467120558abd3d0cbc2ef5d626600ad50a05592a1b0fb70dcf01599274d1747b28254feaa22fd07f2a566b0b6e4ad397d11166d7911477248d9dec31
7
+ data.tar.gz: 5f671fe7d0a664d1aae79503c7ecbaf7ad56415311f3b944c22d4d94939ffc2af974a762b385e0ff4edeb469711b4ed43fd0c2f141952ff99d3597c04928c831
@@ -3,7 +3,7 @@ module Spree
3
3
  include ActiveMerchant::Billing::CreditCardMethods
4
4
 
5
5
  belongs_to :payment_method
6
- belongs_to :user, class_name: Spree.user_class, foreign_key: 'user_id'
6
+ belongs_to :user, class_name: Spree.user_class&.to_s, foreign_key: 'user_id'
7
7
  has_many :payments, as: :source
8
8
 
9
9
  before_save :set_last_digits
@@ -1,7 +1,7 @@
1
1
  module Spree
2
2
  class PromotionRuleUser < Spree::Base
3
3
  belongs_to :promotion_rule, class_name: 'Spree::PromotionRule'
4
- belongs_to :user, class_name: Spree.user_class
4
+ belongs_to :user, class_name: Spree.user_class&.to_s
5
5
 
6
6
  validates :user, :promotion_rule, presence: true
7
7
  validates :user_id, uniqueness: { scope: :promotion_rule_id }, allow_nil: true
@@ -1,6 +1,6 @@
1
1
  module Spree
2
2
  class RoleUser < Spree::Base
3
3
  belongs_to :role, class_name: 'Spree::Role'
4
- belongs_to :user, class_name: Spree.user_class
4
+ belongs_to :user, class_name: Spree.user_class&.to_s
5
5
  end
6
6
  end
@@ -1,6 +1,6 @@
1
1
  module Spree
2
2
  class StateChange < Spree::Base
3
- belongs_to :user, class_name: Spree.user_class
3
+ belongs_to :user, class_name: Spree.user_class&.to_s
4
4
  belongs_to :stateful, polymorphic: true
5
5
 
6
6
  def <=>(other)
@@ -1,4 +1,4 @@
1
- class SpreeOneTwo < ActiveRecord::Migration
1
+ class SpreeOneTwo < ActiveRecord::Migration[4.2]
2
2
  def up
3
3
  # This migration is just a compressed version of all the previous
4
4
  # migrations for spree_core. Do not run it if one of the core tables
@@ -1,4 +1,4 @@
1
- class SpreePromoOneTwo < ActiveRecord::Migration
1
+ class SpreePromoOneTwo < ActiveRecord::Migration[4.2]
2
2
  def up
3
3
  # This migration is just a compressed migration for all previous versions of spree_promo
4
4
  return if table_exists?(:spree_products_promotion_rules)
@@ -1,4 +1,4 @@
1
- class AddTaxRateLabel < ActiveRecord::Migration
1
+ class AddTaxRateLabel < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  add_column :spree_tax_rates, :name, :string
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddToggleTaxRateDisplay < ActiveRecord::Migration
1
+ class AddToggleTaxRateDisplay < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  add_column :spree_tax_rates, :show_rate_in_label, :boolean, :default => true
4
4
  end
@@ -1,4 +1,4 @@
1
- class RemoveUnusedPreferenceColumns < ActiveRecord::Migration
1
+ class RemoveUnusedPreferenceColumns < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  # Columns have already been removed if the application was upgraded from an older version, but must be removed from new apps.
4
4
  remove_column :spree_preferences, :name if ActiveRecord::Base.connection.column_exists?(:spree_preferences, :name)
@@ -1,4 +1,4 @@
1
- class AddLockVersionToVariant < ActiveRecord::Migration
1
+ class AddLockVersionToVariant < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  add_column :spree_variants, :lock_version, :integer, :default => 0
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddStatesRequiredToCountries < ActiveRecord::Migration
1
+ class AddStatesRequiredToCountries < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  add_column :spree_countries, :states_required, :boolean,:default => true
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddOnDemandToProductAndVariant < ActiveRecord::Migration
1
+ class AddOnDemandToProductAndVariant < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  add_column :spree_products, :on_demand, :boolean, :default => false
4
4
  add_column :spree_variants, :on_demand, :boolean, :default => false
@@ -1,4 +1,4 @@
1
- class RemoveNotNullConstraintFromProductsOnHand < ActiveRecord::Migration
1
+ class RemoveNotNullConstraintFromProductsOnHand < ActiveRecord::Migration[4.2]
2
2
  def up
3
3
  change_column :spree_products, :count_on_hand, :integer, :null => true
4
4
  change_column :spree_variants, :count_on_hand, :integer, :null => true
@@ -1,4 +1,4 @@
1
- class SplitPricesFromVariants < ActiveRecord::Migration
1
+ class SplitPricesFromVariants < ActiveRecord::Migration[4.2]
2
2
  def up
3
3
  create_table :spree_prices do |t|
4
4
  t.integer :variant_id, :null => false
@@ -1,4 +1,4 @@
1
- class RemoveNotNullFromSpreePricesAmount < ActiveRecord::Migration
1
+ class RemoveNotNullFromSpreePricesAmount < ActiveRecord::Migration[4.2]
2
2
  def up
3
3
  change_column :spree_prices, :amount, :decimal, :precision => 8, :scale => 2, :null => true
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddCurrencyToLineItems < ActiveRecord::Migration
1
+ class AddCurrencyToLineItems < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  add_column :spree_line_items, :currency, :string
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddCurrencyToOrders < ActiveRecord::Migration
1
+ class AddCurrencyToOrders < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  add_column :spree_orders, :currency, :string
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddCostCurrencyToVariants < ActiveRecord::Migration
1
+ class AddCostCurrencyToVariants < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  add_column :spree_variants, :cost_currency, :string, :after => :cost_price
4
4
  end
@@ -1,4 +1,4 @@
1
- class RemoveDisplayOnFromPaymentMethods < ActiveRecord::Migration
1
+ class RemoveDisplayOnFromPaymentMethods < ActiveRecord::Migration[4.2]
2
2
  def up
3
3
  remove_column :spree_payment_methods, :display_on
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddPositionToTaxonomies < ActiveRecord::Migration
1
+ class AddPositionToTaxonomies < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  add_column :spree_taxonomies, :position, :integer, :default => 0
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddLastIpToSpreeOrders < ActiveRecord::Migration
1
+ class AddLastIpToSpreeOrders < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  add_column :spree_orders, :last_ip_address, :string
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddStateToSpreeAdjustments < ActiveRecord::Migration
1
+ class AddStateToSpreeAdjustments < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  add_column :spree_adjustments, :state, :string
4
4
  remove_column :spree_adjustments, :locked
@@ -1,4 +1,4 @@
1
- class AddDisplayOnToSpreePaymentMethods < ActiveRecord::Migration
1
+ class AddDisplayOnToSpreePaymentMethods < ActiveRecord::Migration[4.2]
2
2
  def self.up
3
3
  add_column :spree_payment_methods, :display_on, :string
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddPositionToProductProperties < ActiveRecord::Migration
1
+ class AddPositionToProductProperties < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  add_column :spree_product_properties, :position, :integer, :default => 0
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddIdentifierToSpreePayments < ActiveRecord::Migration
1
+ class AddIdentifierToSpreePayments < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  add_column :spree_payments, :identifier, :string
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddOrderIdIndexToPayments < ActiveRecord::Migration
1
+ class AddOrderIdIndexToPayments < ActiveRecord::Migration[4.2]
2
2
  def self.up
3
3
  add_index :spree_payments, :order_id
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddPrimaryToSpreeProductsTaxons < ActiveRecord::Migration
1
+ class AddPrimaryToSpreeProductsTaxons < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  add_column :spree_products_taxons, :id, :primary_key
4
4
  end
@@ -1,4 +1,4 @@
1
- class CreateSpreeStockItems < ActiveRecord::Migration
1
+ class CreateSpreeStockItems < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  create_table :spree_stock_items do |t|
4
4
  t.belongs_to :stock_location
@@ -1,4 +1,4 @@
1
- class CreateSpreeStockLocations < ActiveRecord::Migration
1
+ class CreateSpreeStockLocations < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  create_table :spree_stock_locations do |t|
4
4
  t.string :name
@@ -1,4 +1,4 @@
1
- class CreateDefaultStock < ActiveRecord::Migration
1
+ class CreateDefaultStock < ActiveRecord::Migration[4.2]
2
2
  def up
3
3
  unless column_exists? :spree_stock_locations, :default
4
4
  add_column :spree_stock_locations, :default, :boolean, null: false, default: false
@@ -1,4 +1,4 @@
1
- class AddOrderIdIndexToShipments < ActiveRecord::Migration
1
+ class AddOrderIdIndexToShipments < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  add_index :spree_shipments, :order_id
4
4
  end
@@ -1,4 +1,4 @@
1
- class ChangeMetaDescriptionOnSpreeProductsToText < ActiveRecord::Migration
1
+ class ChangeMetaDescriptionOnSpreeProductsToText < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  change_column :spree_products, :meta_description, :text, :limit => nil
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddStockLocationIdToSpreeShipments < ActiveRecord::Migration
1
+ class AddStockLocationIdToSpreeShipments < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  add_column :spree_shipments, :stock_location_id, :integer
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddPendingToInventoryUnit < ActiveRecord::Migration
1
+ class AddPendingToInventoryUnit < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  add_column :spree_inventory_units, :pending, :boolean, :default => true
4
4
  Spree::InventoryUnit.update_all(:pending => false)
@@ -1,4 +1,4 @@
1
- class RemoveOnDemandFromProductAndVariant < ActiveRecord::Migration
1
+ class RemoveOnDemandFromProductAndVariant < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  remove_column :spree_products, :on_demand
4
4
  remove_column :spree_variants, :on_demand
@@ -1,4 +1,4 @@
1
- class CreateShippingMethodZone < ActiveRecord::Migration
1
+ class CreateShippingMethodZone < ActiveRecord::Migration[4.2]
2
2
  class ShippingMethodZone < ActiveRecord::Base
3
3
  self.table_name = 'shipping_methods_zones'
4
4
  end
@@ -1,4 +1,4 @@
1
- class RemoveShippingCategoryIdFromShippingMethod < ActiveRecord::Migration
1
+ class RemoveShippingCategoryIdFromShippingMethod < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  remove_column :spree_shipping_methods, :shipping_category_id
4
4
  end
@@ -1,4 +1,4 @@
1
- class CreateShippingMethodCategories < ActiveRecord::Migration
1
+ class CreateShippingMethodCategories < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  create_table :spree_shipping_method_categories do |t|
4
4
  t.integer :shipping_method_id, :null => false
@@ -1,4 +1,4 @@
1
- class AddTrackingUrlToSpreeShippingMethods < ActiveRecord::Migration
1
+ class AddTrackingUrlToSpreeShippingMethods < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  add_column :spree_shipping_methods, :tracking_url, :string
4
4
  end
@@ -1,4 +1,4 @@
1
- class CreateSpreeShippingRates < ActiveRecord::Migration
1
+ class CreateSpreeShippingRates < ActiveRecord::Migration[4.2]
2
2
  def up
3
3
  create_table :spree_shipping_rates do |t|
4
4
  t.belongs_to :shipment
@@ -1,4 +1,4 @@
1
- class RemoveCategoryMatchAttributesFromShippingMethod < ActiveRecord::Migration
1
+ class RemoveCategoryMatchAttributesFromShippingMethod < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  remove_column :spree_shipping_methods, :match_none
4
4
  remove_column :spree_shipping_methods, :match_one
@@ -1,4 +1,4 @@
1
- class CreateStockMovements < ActiveRecord::Migration
1
+ class CreateStockMovements < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  create_table :spree_stock_movements do |t|
4
4
  t.belongs_to :stock_item
@@ -1,4 +1,4 @@
1
- class AddAddressFieldsToStockLocation < ActiveRecord::Migration
1
+ class AddAddressFieldsToStockLocation < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  remove_column :spree_stock_locations, :address_id
4
4
 
@@ -1,4 +1,4 @@
1
- class AddActiveFieldToStockLocations < ActiveRecord::Migration
1
+ class AddActiveFieldToStockLocations < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  add_column :spree_stock_locations, :active, :boolean, :default => true
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddBackorderableToStockItem < ActiveRecord::Migration
1
+ class AddBackorderableToStockItem < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  add_column :spree_stock_items, :backorderable, :boolean, :default => true
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddDefaultQuantityToStockMovement < ActiveRecord::Migration
1
+ class AddDefaultQuantityToStockMovement < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  change_column :spree_stock_movements, :quantity, :integer, :default => 0
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddSourceAndDestinationToStockMovements < ActiveRecord::Migration
1
+ class AddSourceAndDestinationToStockMovements < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  change_table :spree_stock_movements do |t|
4
4
  t.references :source, polymorphic: true
@@ -1,4 +1,4 @@
1
- class ChangeOrdersTotalPrecision < ActiveRecord::Migration
1
+ class ChangeOrdersTotalPrecision < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  change_column :spree_orders, :item_total, :decimal, :precision => 10, :scale => 2, :default => 0.0, :null => false
4
4
  change_column :spree_orders, :total, :decimal, :precision => 10, :scale => 2, :default => 0.0, :null => false
@@ -1,4 +1,4 @@
1
- class ChangeSpreePaymentsAmountPrecision < ActiveRecord::Migration
1
+ class ChangeSpreePaymentsAmountPrecision < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
 
4
4
  change_column :spree_payments, :amount, :decimal, :precision => 10, :scale => 2, :default => 0.0, :null => false
@@ -1,4 +1,4 @@
1
- class ChangeSpreeReturnAuthorizationAmountPrecision < ActiveRecord::Migration
1
+ class ChangeSpreeReturnAuthorizationAmountPrecision < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
 
4
4
  change_column :spree_return_authorizations, :amount, :decimal, :precision => 10, :scale => 2, :default => 0.0, :null => false
@@ -1,4 +1,4 @@
1
- class ChangeAdjustmentsAmountPrecision < ActiveRecord::Migration
1
+ class ChangeAdjustmentsAmountPrecision < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
 
4
4
  change_column :spree_adjustments, :amount, :decimal, :precision => 10, :scale => 2
@@ -1,4 +1,4 @@
1
- class AddOriginatorToStockMovement < ActiveRecord::Migration
1
+ class AddOriginatorToStockMovement < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  change_table :spree_stock_movements do |t|
4
4
  t.references :originator, polymorphic: true
@@ -1,4 +1,4 @@
1
- class DropSourceAndDestinationFromStockMovement < ActiveRecord::Migration
1
+ class DropSourceAndDestinationFromStockMovement < ActiveRecord::Migration[4.2]
2
2
  def up
3
3
  change_table :spree_stock_movements do |t|
4
4
  t.remove_references :source, :polymorphic => true
@@ -1,4 +1,4 @@
1
- class MigrateInventoryUnitSoldToOnHand < ActiveRecord::Migration
1
+ class MigrateInventoryUnitSoldToOnHand < ActiveRecord::Migration[4.2]
2
2
  def up
3
3
  Spree::InventoryUnit.where(:state => 'sold').update_all(:state => 'on_hand')
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddStockLocationToRma < ActiveRecord::Migration
1
+ class AddStockLocationToRma < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  add_column :spree_return_authorizations, :stock_location_id, :integer
4
4
  end
@@ -1,4 +1,4 @@
1
- class UpdateShipmentStateForCanceledOrders < ActiveRecord::Migration
1
+ class UpdateShipmentStateForCanceledOrders < ActiveRecord::Migration[4.2]
2
2
  def up
3
3
  shipments = Spree::Shipment.joins(:order).
4
4
  where("spree_orders.state = 'canceled'")
@@ -1,4 +1,4 @@
1
- class AddSeoMetasToTaxons < ActiveRecord::Migration
1
+ class AddSeoMetasToTaxons < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  change_table :spree_taxons do |t|
4
4
  t.string :meta_title
@@ -1,4 +1,4 @@
1
- class RemoveStockItemAndVariantLock < ActiveRecord::Migration
1
+ class RemoveStockItemAndVariantLock < ActiveRecord::Migration[4.2]
2
2
  def up
3
3
  # we are moving to pessimistic locking on stock_items
4
4
  remove_column :spree_stock_items, :lock_version
@@ -1,4 +1,4 @@
1
- class AddNameToSpreeCreditCards < ActiveRecord::Migration
1
+ class AddNameToSpreeCreditCards < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  add_column :spree_credit_cards, :name, :string
4
4
  end
@@ -1,4 +1,4 @@
1
- class UpdateNameFieldsOnSpreeCreditCards < ActiveRecord::Migration
1
+ class UpdateNameFieldsOnSpreeCreditCards < ActiveRecord::Migration[4.2]
2
2
  def up
3
3
  if ActiveRecord::Base.connection.adapter_name.downcase.include? "mysql"
4
4
  execute "UPDATE spree_credit_cards SET name = CONCAT(first_name, ' ', last_name)"
@@ -1,4 +1,4 @@
1
- class AddIndexToSourceColumnsOnAdjustments < ActiveRecord::Migration
1
+ class AddIndexToSourceColumnsOnAdjustments < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  add_index :spree_adjustments, [:source_type, :source_id]
4
4
  end
@@ -1,4 +1,4 @@
1
- class UpdateAdjustmentStates < ActiveRecord::Migration
1
+ class UpdateAdjustmentStates < ActiveRecord::Migration[4.2]
2
2
  def up
3
3
  Spree::Order.complete.find_each do |order|
4
4
  order.adjustments.update_all(:state => 'closed')
@@ -1,4 +1,4 @@
1
- class AddShippingRatesToShipments < ActiveRecord::Migration
1
+ class AddShippingRatesToShipments < ActiveRecord::Migration[4.2]
2
2
  def up
3
3
  Spree::Shipment.find_each do |shipment|
4
4
  shipment.shipping_rates.create(:shipping_method_id => shipment.shipping_method_id,
@@ -1,4 +1,4 @@
1
- class CreateSpreeStockTransfers < ActiveRecord::Migration
1
+ class CreateSpreeStockTransfers < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  create_table :spree_stock_transfers do |t|
4
4
  t.string :type
@@ -1,4 +1,4 @@
1
- class DropProductsCountOnHand < ActiveRecord::Migration
1
+ class DropProductsCountOnHand < ActiveRecord::Migration[4.2]
2
2
  def up
3
3
  remove_column :spree_products, :count_on_hand
4
4
  end
@@ -1,4 +1,4 @@
1
- class SetDefaultShippingRateCost < ActiveRecord::Migration
1
+ class SetDefaultShippingRateCost < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  change_column :spree_shipping_rates, :cost, :decimal, default: 0, precision: 8, scale: 2
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddNumberToStockTransfer < ActiveRecord::Migration
1
+ class AddNumberToStockTransfer < ActiveRecord::Migration[4.2]
2
2
  def up
3
3
  remove_index :spree_stock_transfers, :source_location_id
4
4
  remove_index :spree_stock_transfers, :destination_location_id
@@ -1,4 +1,4 @@
1
- class AddSkuIndexToSpreeVariants < ActiveRecord::Migration
1
+ class AddSkuIndexToSpreeVariants < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  add_index :spree_variants, :sku
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddBackorderableDefaultToSpreeStockLocation < ActiveRecord::Migration
1
+ class AddBackorderableDefaultToSpreeStockLocation < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  add_column :spree_stock_locations, :backorderable_default, :boolean, default: true
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddPropageAllVariantsToSpreeStockLocation < ActiveRecord::Migration
1
+ class AddPropageAllVariantsToSpreeStockLocation < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  add_column :spree_stock_locations, :propagate_all_variants, :boolean, default: true
4
4
  end
@@ -1,4 +1,4 @@
1
- class RenameShippingMethodsZonesToSpreeShippingMethodsZones < ActiveRecord::Migration
1
+ class RenameShippingMethodsZonesToSpreeShippingMethodsZones < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  rename_table :shipping_methods_zones, :spree_shipping_methods_zones
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddUserIdIndexToSpreeOrders < ActiveRecord::Migration
1
+ class AddUserIdIndexToSpreeOrders < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  add_index :spree_orders, :user_id
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddUpdatedAtToSpreeCountries < ActiveRecord::Migration
1
+ class AddUpdatedAtToSpreeCountries < ActiveRecord::Migration[4.2]
2
2
  def up
3
3
  add_column :spree_countries, :updated_at, :datetime
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddUpdatedAtToSpreeStates < ActiveRecord::Migration
1
+ class AddUpdatedAtToSpreeStates < ActiveRecord::Migration[4.2]
2
2
  def up
3
3
  add_column :spree_states, :updated_at, :datetime
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddCvvResultCodeAndCvvResultMessageToSpreePayments < ActiveRecord::Migration
1
+ class AddCvvResultCodeAndCvvResultMessageToSpreePayments < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  add_column :spree_payments, :cvv_response_code, :string
4
4
  add_column :spree_payments, :cvv_response_message, :string
@@ -1,4 +1,4 @@
1
- class AddUniqueIndexToPermalinkOnSpreeProducts < ActiveRecord::Migration
1
+ class AddUniqueIndexToPermalinkOnSpreeProducts < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  add_index "spree_products", ["permalink"], :name => "permalink_idx_unique", :unique => true
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddUniqueIndexToOrdersShipmentsAndStockTransfers < ActiveRecord::Migration
1
+ class AddUniqueIndexToOrdersShipmentsAndStockTransfers < ActiveRecord::Migration[4.2]
2
2
  def add
3
3
  add_index "spree_orders", ["number"], :name => "number_idx_unique", :unique => true
4
4
  add_index "spree_shipments", ["number"], :name => "number_idx_unique", :unique => true
@@ -1,4 +1,4 @@
1
- class AddDeletedAtToSpreeTaxRates < ActiveRecord::Migration
1
+ class AddDeletedAtToSpreeTaxRates < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  add_column :spree_tax_rates, :deleted_at, :datetime
4
4
  end
@@ -1,4 +1,4 @@
1
- class RemoveLockVersionFromInventoryUnits < ActiveRecord::Migration
1
+ class RemoveLockVersionFromInventoryUnits < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  # we are moving to pessimistic locking on stock_items
4
4
  remove_column :spree_inventory_units, :lock_version
@@ -1,4 +1,4 @@
1
- class AddCostPriceToLineItem < ActiveRecord::Migration
1
+ class AddCostPriceToLineItem < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  add_column :spree_line_items, :cost_price, :decimal, :precision => 8, :scale => 2
4
4
  end