Sha256: ad5d9bc5f59580cf970aebf0b4f259abd29839df7add52c7fbfba9615ac28f92

Contents?: true

Size: 666 Bytes

Versions: 6

Compression:

Stored size: 666 Bytes

Contents

# This migration comes from spree (originally 20130611054351)
class RenameShippingMethodsZonesToSpreeShippingMethodsZones < ActiveRecord::Migration
  def change
    rename_table :shipping_methods_zones, :spree_shipping_methods_zones
    # If Spree::ShippingMethod zones association was patched in
    # CreateShippingMethodZone migrations, it needs to be patched back
    Spree::ShippingMethod.has_and_belongs_to_many :zones, :join_table => 'spree_shipping_methods_zones',
                                                          :class_name => 'Spree::Zone',
                                                          :foreign_key => 'shipping_method_id'
  end
end

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
spree_order_reporting-0.0.3 spec/dummy/db/migrate/20160708163095_rename_shipping_methods_zones_to_spree_shipping_methods_zones.spree.rb
spree_mercado_pago-0.2.3 spec/dummy/db/migrate/20141204014690_rename_shipping_methods_zones_to_spree_shipping_methods_zones.spree.rb
spree_mercado_pago-0.2.2 spec/dummy/db/migrate/20141204014690_rename_shipping_methods_zones_to_spree_shipping_methods_zones.spree.rb
spree_mercado_pago-0.2.1 spec/dummy/db/migrate/20141112193473_rename_shipping_methods_zones_to_spree_shipping_methods_zones.spree.rb
spree_mercado_pago-0.2.0 spec/dummy/db/migrate/20141112193473_rename_shipping_methods_zones_to_spree_shipping_methods_zones.spree.rb
spree_mercado_pago_payment_method-0.2.0 spec/dummy/db/migrate/20141112193473_rename_shipping_methods_zones_to_spree_shipping_methods_zones.spree.rb