Sha256: 142b7583a0ec531c7944ca8a8709f1a037337b49a16582c0cb7f1176e7e9bfe6
Contents?: true
Size: 415 Bytes
Versions: 35
Compression:
Stored size: 415 Bytes
Contents
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
35 entries across 35 versions & 3 rubygems