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/schema | |
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/schema')
-rw-r--r-- | activerecord/test/schema/schema.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb index 74a893983f..9ebf1d82be 100644 --- a/activerecord/test/schema/schema.rb +++ b/activerecord/test/schema/schema.rb @@ -155,6 +155,10 @@ ActiveRecord::Schema.define do t.integer :course_id, :null => false end + create_table :events, :force => true do |t| + t.string :title, :limit => 5 + end + create_table :funny_jokes, :force => true do |t| t.string :name end |