Skip to content
代码片段 群组 项目
提交 0c2cce6e 编辑于 作者: Heinrich Lee Yu's avatar Heinrich Lee Yu
浏览文件

Merge branch 'fix-migration-record-to-not-sti' into 'master'

Disable STI behavior on `MigrationRecord`

See merge request gitlab-org/gitlab!85577
No related branches found
No related tags found
无相关合并请求
...@@ -46,6 +46,7 @@ class V2_0 < V1_0 # rubocop:disable Naming/ClassAndModuleCamelCase ...@@ -46,6 +46,7 @@ class V2_0 < V1_0 # rubocop:disable Naming/ClassAndModuleCamelCase
# ActiveRecord::Base depending where the migration runs. # ActiveRecord::Base depending where the migration runs.
# This helper class is provided to avoid confusion using `ActiveRecord::Base` # This helper class is provided to avoid confusion using `ActiveRecord::Base`
class MigrationRecord < ActiveRecord::Base class MigrationRecord < ActiveRecord::Base
self.abstract_class = true # Prevent STI behavior
end end
end end
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册