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-3.0.7 db/migrate/20130611054351_rename_shipping_methods_zones_to_spree_shipping_methods_zones.rb
spree_core-3.0.6.1 db/migrate/20130611054351_rename_shipping_methods_zones_to_spree_shipping_methods_zones.rb
spree_core-3.0.6 db/migrate/20130611054351_rename_shipping_methods_zones_to_spree_shipping_methods_zones.rb
spree_core-3.0.5 db/migrate/20130611054351_rename_shipping_methods_zones_to_spree_shipping_methods_zones.rb
spree_core-3.0.4 db/migrate/20130611054351_rename_shipping_methods_zones_to_spree_shipping_methods_zones.rb
spree_core-2.4.10 db/migrate/20130611054351_rename_shipping_methods_zones_to_spree_shipping_methods_zones.rb
spree_core-2.3.13 db/migrate/20130611054351_rename_shipping_methods_zones_to_spree_shipping_methods_zones.rb
spree_core-2.2.14 db/migrate/20130611054351_rename_shipping_methods_zones_to_spree_shipping_methods_zones.rb
spree_core-3.0.3 db/migrate/20130611054351_rename_shipping_methods_zones_to_spree_shipping_methods_zones.rb
spree_core-2.4.9 db/migrate/20130611054351_rename_shipping_methods_zones_to_spree_shipping_methods_zones.rb
spree_core-2.3.12 db/migrate/20130611054351_rename_shipping_methods_zones_to_spree_shipping_methods_zones.rb
spree_core-2.2.13 db/migrate/20130611054351_rename_shipping_methods_zones_to_spree_shipping_methods_zones.rb
spree_core-3.0.2 db/migrate/20130611054351_rename_shipping_methods_zones_to_spree_shipping_methods_zones.rb
spree_core-2.4.8 db/migrate/20130611054351_rename_shipping_methods_zones_to_spree_shipping_methods_zones.rb
spree_core-2.3.11 db/migrate/20130611054351_rename_shipping_methods_zones_to_spree_shipping_methods_zones.rb
spree_core-2.2.12 db/migrate/20130611054351_rename_shipping_methods_zones_to_spree_shipping_methods_zones.rb
spree_core-3.0.1 db/migrate/20130611054351_rename_shipping_methods_zones_to_spree_shipping_methods_zones.rb
spree_core-2.4.7 db/migrate/20130611054351_rename_shipping_methods_zones_to_spree_shipping_methods_zones.rb
spree_core-2.3.10 db/migrate/20130611054351_rename_shipping_methods_zones_to_spree_shipping_methods_zones.rb
spree_core-3.0.0 db/migrate/20130611054351_rename_shipping_methods_zones_to_spree_shipping_methods_zones.rb