class AddMissingIndexesToRolesUsers < ActiveRecord::Migration def self.up add_index ::Refinery::RolesUsers.table_name, [:role_id, :user_id] add_index ::Refinery::RolesUsers.table_name, [:user_id, :role_id] end def self.down remove_index ::Refinery::RolesUsers.table_name, :column => [:role_id, :user_id] remove_index ::Refinery::RolesUsers.table_name, :column => [:user_id, :role_id] end end