Skip to content

Commit

Permalink
index for role_name
Browse files Browse the repository at this point in the history
  • Loading branch information
saturnflyer committed Jul 25, 2010
1 parent 6868975 commit 71086f0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions db/migrate/20100725175546_add_role_name_index.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
class AddRoleNameIndex < ActiveRecord::Migration
def self.up
add_index :roles, :role_name
end

def self.down
remove_index :roles, :column => :role_name
end
end

0 comments on commit 71086f0

Please sign in to comment.