aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaimonds Simanovskis <raimonds.simanovskis@gmail.com>2009-03-23 00:20:42 +0200
committerRaimonds Simanovskis <raimonds.simanovskis@gmail.com>2009-08-06 23:41:00 +0300
commit01a4e07c3625fc2985ca7f2cce40c9d34b1728f8 (patch)
tree8e347ddc11a0f7d31bdac3904a21531bb0badc55
parent04e6bc1134c7165d455106767c5caabb5993e52b (diff)
downloadrails-01a4e07c3625fc2985ca7f2cce40c9d34b1728f8.tar.gz
rails-01a4e07c3625fc2985ca7f2cce40c9d34b1728f8.tar.bz2
rails-01a4e07c3625fc2985ca7f2cce40c9d34b1728f8.zip
Oracle can store integers with any :limit
-rw-r--r--activerecord/test/cases/schema_dumper_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/test/cases/schema_dumper_test.rb b/activerecord/test/cases/schema_dumper_test.rb
index 9612b0beb6..bf9446a474 100644
--- a/activerecord/test/cases/schema_dumper_test.rb
+++ b/activerecord/test/cases/schema_dumper_test.rb
@@ -114,6 +114,11 @@ class SchemaDumperTest < ActiveRecord::TestCase
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