tracks/db/migrate/037_add_index_to_notes.rb
2008-05-20 21:28:26 +01:00

11 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