gitlab-org--gitlab-foss/app/models/concerns/object_storable.rb

11 lines
318 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module ObjectStorable
extend ActiveSupport::Concern
included do
scope :with_files_stored_locally, -> { where(klass::STORE_COLUMN => ObjectStorage::Store::LOCAL) }
scope :with_files_stored_remotely, -> { where(klass::STORE_COLUMN => ObjectStorage::Store::REMOTE) }
end
end