Skip to content

Commit

Permalink
small fix for adding index on correct templated table/column instead …
Browse files Browse the repository at this point in the history
…of static users table
  • Loading branch information
redmar authored and technoweenie committed May 26, 2008
1 parent 84dd57f commit 6de385e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generators/authenticated/templates/migration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6de385e

Please sign in to comment.