diff options
author | Yasuo Honda <yasuo.honda@gmail.com> | 2017-10-18 15:00:16 +0000 |
---|---|---|
committer | Yasuo Honda <yasuo.honda@gmail.com> | 2017-10-18 15:33:29 +0000 |
commit | 25ea77d5089caaf8c2445044499720b13c91deda (patch) | |
tree | 1fdee9bf5e33b5b7b1fc731cca8bd666d84a0f83 | |
parent | d7ee4f2059ef6a51a5e9f7323cd669a2998301e0 (diff) | |
download | rails-25ea77d5089caaf8c2445044499720b13c91deda.tar.gz rails-25ea77d5089caaf8c2445044499720b13c91deda.tar.bz2 rails-25ea77d5089caaf8c2445044499720b13c91deda.zip |
Enable `hstore` extention disabled at the end of `InvertibleMigrationTest#test_migrate_enable_and_disable_extension`
to avoid failure of `PostgresqlArrayTest#test_schema_dump_with_shorthand`
which expects `hstore` extension enabled.
-rw-r--r-- | activerecord/test/cases/invertible_migration_test.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/test/cases/invertible_migration_test.rb b/activerecord/test/cases/invertible_migration_test.rb index 20e747142b..60c628511f 100644 --- a/activerecord/test/cases/invertible_migration_test.rb +++ b/activerecord/test/cases/invertible_migration_test.rb @@ -295,6 +295,8 @@ module ActiveRecord migration2.migrate(:down) assert_equal false, Horse.connection.extension_enabled?("hstore") + ensure + enable_extension!("hstore", ActiveRecord::Base.connection) end end |