Files
gitlab-foss/lib/gitlab/database/postgres_sequence.rb
2024-02-23 12:13:21 +00:00

14 lines
348 B
Ruby

# frozen_string_literal: true
module Gitlab
module Database
# Backed by the postgres_sequences view
class PostgresSequence < SharedModel
self.primary_key = :seq_name
scope :by_table_name, ->(table_name) { where(table_name: table_name) }
scope :by_col_name, ->(col_name) { where(col_name: col_name) }
end
end
end