mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 07:10:12 +01:00
11 lines
283 B
Ruby
11 lines
283 B
Ruby
class AddFindByNameIndices < ActiveRecord::Migration[5.2]
|
|
def self.up
|
|
add_index :projects, [:user_id, :name]
|
|
add_index :contexts, [:user_id, :name]
|
|
end
|
|
|
|
def self.down
|
|
remove_index :projects, [:user_id, :name]
|
|
remove_index :contexts, [:user_id, :name]
|
|
end
|
|
end
|