1
2
3
4
5
6
7
8
9
10
|
class IndexDomainsFilteredFields < ActiveRecord::Migration
def self.up
add_index :domains, [:name]
add_index :domains, [:is_default]
add_index :domains, [:owner_id, :owner_type]
add_index :domains, [:owner_id, :owner_type, :is_default]
end
end
|