Permalink
Browse files

Oracle can store integers with any :limit

  • Loading branch information...
1 parent 04e6bc1 commit 01a4e07c3625fc2985ca7f2cce40c9d34b1728f8 @rsim rsim committed Mar 22, 2009
Showing with 5 additions and 0 deletions.
  1. +5 −0 activerecord/test/cases/schema_dumper_test.rb
@@ -114,6 +114,11 @@ def test_schema_dump_includes_limit_constraint_for_integer_columns
assert_match %r{c_int_6.*:limit => 6}, output
assert_match %r{c_int_7.*:limit => 7}, output
assert_match %r{c_int_8.*:limit => 8}, output
+ elsif current_adapter?(:OracleAdapter)
+ assert_match %r{c_int_5.*:limit => 5}, output
+ assert_match %r{c_int_6.*:limit => 6}, output
+ assert_match %r{c_int_7.*:limit => 7}, output
+ assert_match %r{c_int_8.*:limit => 8}, output
else
assert_match %r{c_int_5.*:limit => 8}, output
assert_match %r{c_int_6.*:limit => 8}, output

0 comments on commit 01a4e07

Please sign in to comment.