summaryrefslogtreecommitdiff
path: root/lib/gitlab/database/postgresql_adapter/dump_schema_versions_mixin.rb
blob: 59bd24d3c371015f246ed8f80d081f991ecac390 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

module Gitlab
  module Database
    module PostgresqlAdapter
      module DumpSchemaVersionsMixin
        extend ActiveSupport::Concern

        def dump_schema_information # :nodoc:
          versions = schema_migration.all_versions
          Gitlab::Database::SchemaVersionFiles.touch_all(versions) if versions.any?

          nil
        end
      end
    end
  end
end