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.
19 lines
612 B
Ruby
19 lines
612 B
Ruby
# frozen_string_literal: true
|
|
|
|
require_relative "../model"
|
|
|
|
class FirewallsPrivateSubnets < Sequel::Model
|
|
include ResourceMethods
|
|
end
|
|
|
|
# Table: firewalls_private_subnets
|
|
# Primary Key: (private_subnet_id, firewall_id)
|
|
# Columns:
|
|
# private_subnet_id | uuid |
|
|
# firewall_id | uuid |
|
|
# Indexes:
|
|
# firewalls_private_subnets_pkey | PRIMARY KEY btree (private_subnet_id, firewall_id)
|
|
# Foreign key constraints:
|
|
# firewalls_private_subnets_firewall_id_fkey | (firewall_id) REFERENCES firewall(id)
|
|
# firewalls_private_subnets_private_subnet_id_fkey | (private_subnet_id) REFERENCES private_subnet(id)
|