X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/0f644e242ef37c911ad3dc25aca8135c339de349..4a093ba4a1e14275a9500f2c65dd48528bc1e095:/services/api/lib/can_be_an_owner.rb diff --git a/services/api/lib/can_be_an_owner.rb b/services/api/lib/can_be_an_owner.rb index f5b2fe98f8..1a990e14ea 100644 --- a/services/api/lib/can_be_an_owner.rb +++ b/services/api/lib/can_be_an_owner.rb @@ -15,6 +15,7 @@ module CanBeAnOwner ActiveRecord::Base.connection.tables.each do |t| next if t == base.table_name next if t == 'schema_migrations' + next if t == 'permission_refresh_lock' klass = t.classify.constantize next unless klass and 'owner_uuid'.in?(klass.columns.collect(&:name)) base.has_many(t.to_sym,