debian-mirror-gitlab/config/initializers/active_record_schema_versions.rb

8 lines
540 B
Ruby
Raw Normal View History

2020-04-22 19:07:51 +05:30
# frozen_string_literal: true
2020-10-24 23:57:45 +05:30
# Patch to write version information as empty files under the db/schema_migrations directory
2020-04-22 19:07:51 +05:30
# This is intended to reduce potential for merge conflicts in db/structure.sql
2020-10-24 23:57:45 +05:30
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.prepend(Gitlab::Database::PostgresqlAdapter::DumpSchemaVersionsMixin)
# Patch to load version information from empty files under the db/schema_migrations directory
ActiveRecord::Tasks::PostgreSQLDatabaseTasks.prepend(Gitlab::Database::PostgresqlDatabaseTasks::LoadSchemaVersionsMixin)