Skip to content
代码片段 群组 项目
未验证 提交 d1c62fe8 编辑于 作者: Stan Hu's avatar Stan Hu
浏览文件

Fix fail-fast job when there are migrations present

https://gitlab.com/gitlab-org/gitlab/-/merge_requests/101613
consolidated some of the logic for calling `schema_migrate_down!` to
`spec/support/multiple_databases.rb`, but it introduced some issues
with database cleanup. It appears calling
`with_reestablished_active_record_base` disconnects connections and
clears attribute methods. We now need to:

1. Ensure that tables are deleted before we migrate.
2. Force a refresh of attribute methods after ensuring migrations are
up.

Relates to https://gitlab.com/gitlab-org/gitlab/-/issues/378582
上级 54c250ff
No related branches found
No related tags found
加载中
加载中
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册