You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
educoder/db/migrate/20190911103449_migrate_grad...

8 lines
220 B

class MigrateGradeIndex < ActiveRecord::Migration[5.2]
def change
remove_index :grades, [:user_id, :container_id]
add_index :grades, [:container_id, :container_type]
add_index :grades, [:user_id]
end
end