Merge branch '14670-new-java-sdk-docs' refs #14670
[arvados.git] / services / api / config / initializers / legacy_jobs_api.rb
index ae98a3d130d4cffe936961ab1acb04e15d8ae036..8f3b3cb5f8e951df55979a1f74adce8b847de652 100644 (file)
@@ -5,10 +5,11 @@
 # Config must be done before we  files; otherwise they
 # won't be able to use Rails.configuration.* to initialize their
 # classes.
-require_relative 'load_config.rb'
 
 require 'enable_jobs_api'
 
 Server::Application.configure do
-  check_enable_legacy_jobs_api
+  if ActiveRecord::Base.connection.tables.include?('jobs')
+    check_enable_legacy_jobs_api
+  end
 end