gitlab-ce/lib/gitlab/database/postgres_sequence.rb

13 lines
279 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) }
end
end
end