mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-10 01:31:45 +00:00
14 lines
348 B
Ruby
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
|