diff options
author | Arthur Klepchukov <arthur.klepchukov@gmail.com> | 2009-03-07 13:52:17 +0000 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2009-03-07 13:52:17 +0000 |
commit | ccb0a92fa2ba0bf7be50033090c3a861e6d907be (patch) | |
tree | 6657a66b2c19c3437837f6f2a38672d1b6827953 /activerecord/test/models | |
parent | f36513653fceb01691288dfdebfdc56d17dc85c9 (diff) | |
download | rails-ccb0a92fa2ba0bf7be50033090c3a861e6d907be.tar.gz rails-ccb0a92fa2ba0bf7be50033090c3a861e6d907be.tar.bz2 rails-ccb0a92fa2ba0bf7be50033090c3a861e6d907be.zip |
Ensure validates_uniqueness_of considers limit on the field. [#1042 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
Diffstat (limited to 'activerecord/test/models')
-rw-r--r-- | activerecord/test/models/event.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/activerecord/test/models/event.rb b/activerecord/test/models/event.rb new file mode 100644 index 0000000000..99fa0feeb7 --- /dev/null +++ b/activerecord/test/models/event.rb @@ -0,0 +1,3 @@ +class Event < ActiveRecord::Base + validates_uniqueness_of :title +end
\ No newline at end of file |