rails/activerecord/test/models/event.rb
Arthur Klepchukov ccb0a92fa2 Ensure validates_uniqueness_of considers limit on the field. [#1042 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2009-03-07 13:52:17 +00:00

3 lines
69 B
Ruby

class Event < ActiveRecord::Base
validates_uniqueness_of :title
end