mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-19 08:40:12 +01:00
11 lines
278 B
Ruby
11 lines
278 B
Ruby
class AddFindByNameIndices < ActiveRecord::Migration
|
|
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
|