Commit 289ed8d6 authored by Matthias Käppler's avatar Matthias Käppler

Merge branch '351585-support-multiple-databases-for-batched-background-migrations' into 'master'

Resolve "Support multiple databases for batched background migrations"

See merge request gitlab-org/gitlab!82486
parents c33c5d65 f5a07dbb
......@@ -3,7 +3,7 @@
module Gitlab
module Database
module BackgroundMigration
class BatchedJobTransitionLog < ApplicationRecord
class BatchedJobTransitionLog < SharedModel
include PartitionedTable
self.table_name = :batched_background_migration_job_transition_logs
......
......@@ -3,6 +3,8 @@
require 'spec_helper'
RSpec.describe Gitlab::Database::BackgroundMigration::BatchedJobTransitionLog, type: :model do
it { is_expected.to be_a Gitlab::Database::SharedModel }
describe 'associations' do
it { is_expected.to belong_to(:batched_job).with_foreign_key(:batched_background_migration_job_id) }
end
......
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