Add index on Files

This commit is contained in:
Jan Renz
2015-04-21 09:50:23 +02:00
parent 9c8d0b01eb
commit c7583f3eda
2 changed files with 8 additions and 1 deletions

View File

@ -0,0 +1,5 @@
class AddFileIndexToFiles < ActiveRecord::Migration
def change
add_index(:files, [:context_id, :context_type])
end
end