Welcome to mirror list, hosted at ThFree Co, Russian Federation.

sql_type_missing_error.rb « keyset « pagination « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0525ae13e9c5fd46235af4030405e51a068f2d55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true
module Gitlab
  module Pagination
    module Keyset
      class SqlTypeMissingError < StandardError
        def self.for_column(column)
          message = <<~TEXT
          The "sql_type" attribute is not set for the following column definition:
          #{column.attribute_name}
          
          See the ColumnOrderDefinition class for more context.
          TEXT

          new(message)
        end
      end
    end
  end
end