Files
codeocean/db/migrate/20180815115351_remove_event_indices.rb
2021-11-09 17:38:58 +01:00

10 lines
283 B
Ruby

# frozen_string_literal: true
class RemoveEventIndices < ActiveRecord::Migration[6.1]
def change
remove_index :events, %i[user_type user_id], if_exists: true
remove_index :events, :exercise_id, if_exists: true
remove_index :events, :file_id, if_exists: true
end
end