Sha256: bc3ea12063c6fba6d76d9c83f505d7f4d7a27e427043419b53eb4c7d000daef6

Contents?: true

Size: 604 Bytes

Versions: 48

Compression:

Stored size: 604 Bytes

Contents

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

48 entries across 48 versions & 1 rubygems

Version Path
spree_core-2.4.6 db/migrate/20130611054351_rename_shipping_methods_zones_to_spree_shipping_methods_zones.rb
spree_core-2.3.9 db/migrate/20130611054351_rename_shipping_methods_zones_to_spree_shipping_methods_zones.rb
spree_core-2.2.11 db/migrate/20130611054351_rename_shipping_methods_zones_to_spree_shipping_methods_zones.rb
spree_core-2.2.10 db/migrate/20130611054351_rename_shipping_methods_zones_to_spree_shipping_methods_zones.rb
spree_core-2.3.8 db/migrate/20130611054351_rename_shipping_methods_zones_to_spree_shipping_methods_zones.rb
spree_core-2.4.5 db/migrate/20130611054351_rename_shipping_methods_zones_to_spree_shipping_methods_zones.rb
spree_core-3.0.0.rc4 db/migrate/20130611054351_rename_shipping_methods_zones_to_spree_shipping_methods_zones.rb
spree_core-3.0.0.rc3 db/migrate/20130611054351_rename_shipping_methods_zones_to_spree_shipping_methods_zones.rb
spree_core-2.4.4 db/migrate/20130611054351_rename_shipping_methods_zones_to_spree_shipping_methods_zones.rb
spree_core-2.3.7 db/migrate/20130611054351_rename_shipping_methods_zones_to_spree_shipping_methods_zones.rb
spree_core-3.0.0.rc1 db/migrate/20130611054351_rename_shipping_methods_zones_to_spree_shipping_methods_zones.rb
spree_core-2.4.3 db/migrate/20130611054351_rename_shipping_methods_zones_to_spree_shipping_methods_zones.rb
spree_core-2.2.9 db/migrate/20130611054351_rename_shipping_methods_zones_to_spree_shipping_methods_zones.rb
spree_core-2.1.12 db/migrate/20130611054351_rename_shipping_methods_zones_to_spree_shipping_methods_zones.rb
spree_core-2.4.2 db/migrate/20130611054351_rename_shipping_methods_zones_to_spree_shipping_methods_zones.rb
spree_core-2.3.6 db/migrate/20130611054351_rename_shipping_methods_zones_to_spree_shipping_methods_zones.rb
spree_core-2.2.8 db/migrate/20130611054351_rename_shipping_methods_zones_to_spree_shipping_methods_zones.rb
spree_core-2.1.11 db/migrate/20130611054351_rename_shipping_methods_zones_to_spree_shipping_methods_zones.rb
spree_core-2.4.1 db/migrate/20130611054351_rename_shipping_methods_zones_to_spree_shipping_methods_zones.rb
spree_core-2.4.0 db/migrate/20130611054351_rename_shipping_methods_zones_to_spree_shipping_methods_zones.rb