Merge branch '14670-new-java-sdk-docs' of git.curoverse.com:arvados into 14670-new...
[arvados.git] / services / api / config / initializers / legacy_jobs_api.rb
index ae98a3d130d4cffe936961ab1acb04e15d8ae036..9ea6b2884374317e65c1cbc1027a1f0581b3a103 100644 (file)
@@ -10,5 +10,7 @@ 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