diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-05-21 21:47:53 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-05-21 21:47:53 -0300 |
commit | 2fb2913b35c4a706f0207119ab0b3e89f61546a1 (patch) | |
tree | 2a1a4df21243f9db901520f22ece415a40045601 /activerecord/test | |
parent | 62bcf81431baf84f7e4c370c1ae30fe07ee1022a (diff) | |
parent | e45e4f44e35d6ce9868542cc2a151b2a6c497e9b (diff) | |
download | rails-2fb2913b35c4a706f0207119ab0b3e89f61546a1.tar.gz rails-2fb2913b35c4a706f0207119ab0b3e89f61546a1.tar.bz2 rails-2fb2913b35c4a706f0207119ab0b3e89f61546a1.zip |
Merge pull request #15237 from sgrif/sg-move-extract-scale
Move extract_scale to decimal type
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/schema_dumper_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/schema_dumper_test.rb b/activerecord/test/cases/schema_dumper_test.rb index fd0ef2f89f..61bca976f7 100644 --- a/activerecord/test/cases/schema_dumper_test.rb +++ b/activerecord/test/cases/schema_dumper_test.rb @@ -353,9 +353,9 @@ class SchemaDumperTest < ActiveRecord::TestCase output = standard_dump # Oracle supports precision up to 38 and it identifies decimals with scale 0 as integers if current_adapter?(:OracleAdapter) - assert_match %r{t.integer\s+"atoms_in_universe",\s+precision: 38,\s+scale: 0}, output + assert_match %r{t.integer\s+"atoms_in_universe",\s+precision: 38}, output else - assert_match %r{t.decimal\s+"atoms_in_universe",\s+precision: 55,\s+scale: 0}, output + assert_match %r{t.decimal\s+"atoms_in_universe",\s+precision: 55}, output end end |