Files
codeocean/db/migrate/20150421074734_add_file_index_to_files.rb

6 lines
132 B
Ruby

class AddFileIndexToFiles < ActiveRecord::Migration[4.2]
def change
add_index(:files, [:context_id, :context_type])
end
end