体验新版 GitCode,发现更多精彩内容 >>
Remove `MigrationTest#connection` and write `ActiveRecord::Base.connection` directly to test, because `MigrationTest#connection` is only used in `test_migration_instance_has_connection`.
拖放文件到此处或点击上传