class MigrateUserExtensionIndex < ActiveRecord::Migration[5.2] def change remove_index :user_extensions, :school_id add_index :user_extensions, [:school_id, :user_id] end end