2019-05-13 18:42:57 +02:00
|
|
|
class AddIndexToNotes < ActiveRecord::Migration[5.2]
|
2008-01-18 15:03:31 +00:00
|
|
|
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
|