Redmine/db/migrate/20110401192910_add_index_to...

10 lines
158 B
Ruby

class AddIndexToUsersType < ActiveRecord::Migration
def self.up
add_index :users, :type
end
def self.down
remove_index :users, :type
end
end