diff options
Diffstat (limited to 'spec/support/helpers/migrations_helpers.rb')
-rw-r--r-- | spec/support/helpers/migrations_helpers.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/helpers/migrations_helpers.rb b/spec/support/helpers/migrations_helpers.rb index 1b8c3388051..dcf61d57af7 100644 --- a/spec/support/helpers/migrations_helpers.rb +++ b/spec/support/helpers/migrations_helpers.rb @@ -4,7 +4,7 @@ module MigrationsHelpers def active_record_base(database: nil) database_name = database || self.class.metadata[:database] || :main - unless Gitlab::Database::DATABASE_NAMES.include?(database_name.to_s) + unless ::Gitlab::Database.all_database_connections.include?(database_name) raise ArgumentError, "#{database_name} is not a valid argument" end |