This makes it easier for developers new to the codebase to easily get important information on the model's table in the same file as the model code. To ensure the model annotations stay accurate, run them on test_up/test_down. In CI, regenerate the annotations, and check for no changes, similar to how the linters work.
14 lines
353 B
Ruby
14 lines
353 B
Ruby
# frozen_string_literal: true
|
|
|
|
require_relative "../../model"
|
|
|
|
class PostgresLsnMonitor < Sequel::Model(POSTGRES_MONITOR_DB[:postgres_lsn_monitor])
|
|
end
|
|
|
|
# Table: postgres_lsn_monitor
|
|
# Columns:
|
|
# postgres_server_id | uuid | PRIMARY KEY
|
|
# last_known_lsn | pg_lsn |
|
|
# Indexes:
|
|
# postgres_lsn_monitor_pkey | PRIMARY KEY btree (postgres_server_id)
|