Sha256: ac0dfcb3e2bdbb9ce8604ec5b4e6370f1b3901a7876e26b232dddaa887a8c13f

Contents?: true

Size: 392 Bytes

Versions: 1

Compression:

Stored size: 392 Bytes

Contents

# frozen_string_literal: true

module Bulkrax
  class PendingRelationship < ApplicationRecord
    belongs_to :importer_run

    # Ideally we wouldn't have a column named "order", as it is a reserved SQL term.  However, if we
    # quote the column, all is well...for the application.
    scope :ordered, -> { order("#{quoted_table_name}.#{connection.quote_column_name('order')}") }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bulkrax-5.1.0 app/models/bulkrax/pending_relationship.rb