diff options
Diffstat (limited to 'app/models/concerns/loose_foreign_key.rb')
-rw-r--r-- | app/models/concerns/loose_foreign_key.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/concerns/loose_foreign_key.rb b/app/models/concerns/loose_foreign_key.rb index 4e822a04869..8bbd6980d4d 100644 --- a/app/models/concerns/loose_foreign_key.rb +++ b/app/models/concerns/loose_foreign_key.rb @@ -69,7 +69,7 @@ module LooseForeignKey end on_delete_options = %i[async_delete async_nullify] - gitlab_schema_options = [ApplicationRecord.gitlab_schema, Ci::ApplicationRecord.gitlab_schema] + gitlab_schema_options = %i(gitlab_main gitlab_ci) unless on_delete_options.include?(symbolized_options[:on_delete]&.to_sym) raise "Invalid on_delete option given: #{symbolized_options[:on_delete]}. Valid options: #{on_delete_options.join(', ')}" |