Add token value uniqueness validation (#3351).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2741 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2009-05-13 16:55:15 +00:00
parent 3e52383988
commit f5eb1be268
1 changed files with 1 additions and 0 deletions

View File

@ -17,6 +17,7 @@
class Token < ActiveRecord::Base
belongs_to :user
validates_uniqueness_of :value
@@validity_time = 1.day