diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-04-05 14:42:03 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-04-05 14:42:03 -0300 |
commit | d25e0c6f6a2764fb2605dc216e5c4b26a74f7e97 (patch) | |
tree | 75bf9fcc5dba32c7dc0d15708dafabe9e32b963b /activerecord/test/cases | |
parent | 877dfcbb6437acfd56c7ead4f9998b5b0bf82c0e (diff) | |
parent | 661365e7ce445955996c9024b76cea84e4f31a02 (diff) | |
download | rails-d25e0c6f6a2764fb2605dc216e5c4b26a74f7e97.tar.gz rails-d25e0c6f6a2764fb2605dc216e5c4b26a74f7e97.tar.bz2 rails-d25e0c6f6a2764fb2605dc216e5c4b26a74f7e97.zip |
Merge pull request #10098 from subwindow/postgres_dump_bigint_default
Correctly parse bigint defaults in PostgreSQL
Conflicts:
activerecord/CHANGELOG.md
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? |