Permalink
Browse files

small fix for adding index on correct templated table/column instead …

…of static users table
  • Loading branch information...
1 parent cbe902d commit 815b11e3ba141d878f5390f4b5135a7d3b6be497 @redmar redmar committed May 26, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 generators/authenticated/templates/migration.rb
@@ -17,7 +17,7 @@ def self.up
t.column :state, :string, :null => :no, :default => 'passive'
t.column :deleted_at, :datetime<% end %>
end
- add_index :users, :login, :unique => true
+ add_index :<%= table_name %>, :login, :unique => true
end
def self.down

0 comments on commit 815b11e

Please sign in to comment.