diff options
author | Erik Peterson <erik@subwindow.com> | 2013-04-04 21:06:52 -0400 |
---|---|---|
committer | Erik Peterson <erik@subwindow.com> | 2013-04-05 09:37:08 -0400 |
commit | 661365e7ce445955996c9024b76cea84e4f31a02 (patch) | |
tree | 2fd37d4d3bbe0d6cf4c010eb3bc63c5da1b93ec3 /activerecord/test/cases | |
parent | dce398d579e484ff64a0260cea4591ad952dc99c (diff) | |
download | rails-661365e7ce445955996c9024b76cea84e4f31a02.tar.gz rails-661365e7ce445955996c9024b76cea84e4f31a02.tar.bz2 rails-661365e7ce445955996c9024b76cea84e4f31a02.zip |
Correctly parse bigint defaults in PostgreSQL
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/schema_dumper_test.rb | 5 |
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 9944527d48..a48ae1036f 100644 --- a/activerecord/test/cases/schema_dumper_test.rb +++ b/activerecord/test/cases/schema_dumper_test.rb @@ -242,6 +242,11 @@ class SchemaDumperTest < ActiveRecord::TestCase end if current_adapter?(:PostgreSQLAdapter) + def test_schema_dump_includes_bigint_default + output = standard_dump + assert_match %r{t.integer\s+"bigint_default",\s+limit: 8,\s+default: 0}, output + end + def test_schema_dump_includes_extensions connection = ActiveRecord::Base.connection skip unless connection.supports_extensions? |