aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/schema
diff options
context:
space:
mode:
authorArthur Klepchukov <arthur.klepchukov@gmail.com>2009-03-07 13:52:17 +0000
committerPratik Naik <pratiknaik@gmail.com>2009-03-07 13:52:17 +0000
commitccb0a92fa2ba0bf7be50033090c3a861e6d907be (patch)
tree6657a66b2c19c3437837f6f2a38672d1b6827953 /activerecord/test/schema
parentf36513653fceb01691288dfdebfdc56d17dc85c9 (diff)
downloadrails-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.rb4
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