mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-17 15:50:13 +01:00
12 lines
240 B
Ruby
12 lines
240 B
Ruby
|
|
class AddIndexToNotes < ActiveRecord::Migration
|
||
|
|
def self.up
|
||
|
|
add_index :notes, [:project_id]
|
||
|
|
add_index :notes, [:user_id]
|
||
|
|
end
|
||
|
|
|
||
|
|
def self.down
|
||
|
|
remove_index :notes, [:user_id]
|
||
|
|
remove_index :notes, [:project_id]
|
||
|
|
end
|
||
|
|
end
|