Add index on Files
This commit is contained in:
5
db/migrate/20150421074734_add_file_index_to_files.rb
Normal file
5
db/migrate/20150421074734_add_file_index_to_files.rb
Normal file
@ -0,0 +1,5 @@
|
||||
class AddFileIndexToFiles < ActiveRecord::Migration
|
||||
def change
|
||||
add_index(:files, [:context_id, :context_type])
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user