#18 Add sql index for unpublished exercises
And remove spec for remove feature
This commit is contained in:

committed by
Felix Auringer

parent
2d2869765f
commit
028fc2989a
@@ -0,0 +1,5 @@
|
||||
class AddIndexToUnpublishedExercises < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_index(:exercises, :id, where: 'NOT unpublished', name: :index_unpublished_exercises)
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user