Files
codeocean/db/migrate/20201208132844_add_index_to_unpublished_exercises.rb
Maximilian Pass 028fc2989a #18 Add sql index for unpublished exercises
And remove spec for remove feature
2020-12-15 12:17:11 +01:00

6 lines
184 B
Ruby

class AddIndexToUnpublishedExercises < ActiveRecord::Migration[5.2]
def change
add_index(:exercises, :id, where: 'NOT unpublished', name: :index_unpublished_exercises)
end
end