Commit 6a872dde authored by Michael Kozono's avatar Michael Kozono

Merge branch...

Merge branch '349656-undefined-method-each_batch-for-geo-uploadstate-activerecord_relation' into 'master'

Geo: Resolve "undefined method each_batch"

See merge request gitlab-org/gitlab!77676
parents 1c7c73be 6285caf9
...@@ -488,6 +488,8 @@ That's all of the required database changes. ...@@ -488,6 +488,8 @@ That's all of the required database changes.
module Geo module Geo
class CoolWidgetState < ApplicationRecord class CoolWidgetState < ApplicationRecord
include EachBatch
self.primary_key = :cool_widget_id self.primary_key = :cool_widget_id
belongs_to :cool_widget, inverse_of: :cool_widget_state belongs_to :cool_widget, inverse_of: :cool_widget_state
......
...@@ -452,6 +452,8 @@ That's all of the required database changes. ...@@ -452,6 +452,8 @@ That's all of the required database changes.
``` ruby ``` ruby
module Geo module Geo
class CoolWidgetState < ApplicationRecord class CoolWidgetState < ApplicationRecord
include EachBatch
self.primary_key = :cool_widget_id self.primary_key = :cool_widget_id
belongs_to :cool_widget, inverse_of: :cool_widget_state belongs_to :cool_widget, inverse_of: :cool_widget_state
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
module Geo module Geo
class LfsObjectState < ApplicationRecord class LfsObjectState < ApplicationRecord
include EachBatch
self.primary_key = :lfs_object_id self.primary_key = :lfs_object_id
belongs_to :lfs_object, inverse_of: :lfs_object_state belongs_to :lfs_object, inverse_of: :lfs_object_state
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
module Geo module Geo
class PagesDeploymentState < ApplicationRecord class PagesDeploymentState < ApplicationRecord
include EachBatch
self.primary_key = :pages_deployment_id self.primary_key = :pages_deployment_id
belongs_to :pages_deployment, inverse_of: :pages_deployment_state belongs_to :pages_deployment, inverse_of: :pages_deployment_state
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
module Geo module Geo
class UploadState < ApplicationRecord class UploadState < ApplicationRecord
include EachBatch
self.primary_key = :upload_id self.primary_key = :upload_id
belongs_to :upload, inverse_of: :upload_state belongs_to :upload, inverse_of: :upload_state
......
# frozen_string_literal: true # frozen_string_literal: true
class MergeRequestDiffDetail < ApplicationRecord class MergeRequestDiffDetail < ApplicationRecord
include EachBatch
self.primary_key = :merge_request_diff_id self.primary_key = :merge_request_diff_id
belongs_to :merge_request_diff, inverse_of: :merge_request_diff_detail belongs_to :merge_request_diff, inverse_of: :merge_request_diff_detail
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment