Sha256: 1e0c2fa20aaf734526cf65ab2ab0c6000c260c29190514225e2e9ef1b5c5df82

Contents?: true

Size: 477 Bytes

Versions: 7

Compression:

Stored size: 477 Bytes

Contents

# This migration comes from spree (originally 20101117031806)
class FixProblematicIndexNames < ActiveRecord::Migration
  def up
    begin
      remove_index :preferences, :name => 'index_preferences_on_owner_and_attribute_and_preference'
    rescue ArgumentError
      # ignore - already remove then
    end
    add_index :preferences, [:owner_id, :owner_type, :name, :group_id, :group_type], :name => 'ix_prefs_on_owner_attr_pref', :unique => true
  end

  def down
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
spree_mercado_pago_payment_method-0.0.2 spec/dummy/db/migrate/20121121030214_fix_problematic_index_names.spree.rb
spree_mercado_pago_payment_method-0.1.1 spec/dummy/db/migrate/20121121030214_fix_problematic_index_names.spree.rb
spree_mercado_pago_payment_method-0.1.0 spec/dummy/db/migrate/20121121030214_fix_problematic_index_names.spree.rb
datashift_spree-0.3.0 spec/sandbox/db/migrate/20121023154433_fix_problematic_index_names.spree.rb
datashift_spree-0.2.1 spec/sandbox/db/migrate/20121015151226_fix_problematic_index_names.spree.rb
datashift_spree-0.2.0 spec/sandbox/db/migrate/20120925192794_fix_problematic_index_names.spree.rb
datashift_spree-0.1.0 spec/sandbox/db/migrate/20120918081525_fix_problematic_index_names.spree.rb