Sha256: 8b2268090bfad532a4d219b433df48c6d23be489580513c1f4d6520cd1d85cbd
Contents?: true
Size: 424 Bytes
Versions: 54
Compression:
Stored size: 424 Bytes
Contents
class FixProblematicIndexNames < ActiveRecord::Migration def self.up begin remove_index("preferences", "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 self.down end end
Version data entries
54 entries across 42 versions & 9 rubygems