Redmine/db/migrate/20091017213835_add_missing_...

10 lines
201 B
Ruby
Raw Normal View History

class AddMissingIndexesToUserPreferences < ActiveRecord::Migration
def self.up
add_index :user_preferences, :user_id
end
def self.down
remove_index :user_preferences, :user_id
end
end