Files
ubicloud/model/globally_blocked_dnsname.rb
Jeremy Evans 30247a3800 Include model annotations at the bottom of all model files
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.
2024-11-13 09:13:30 -08:00

22 lines
589 B
Ruby

# frozen_string_literal: true
require_relative "../model"
class GloballyBlockedDnsname < Sequel::Model
include ResourceMethods
def self.ubid_type
UBID::TYPE_ETC
end
end
# Table: globally_blocked_dnsname
# Columns:
# id | uuid | PRIMARY KEY
# dns_name | text | NOT NULL
# ip_list | inet[] |
# last_check_at | timestamp without time zone |
# Indexes:
# globally_blocked_dnsname_pkey | PRIMARY KEY btree (id)
# globally_blocked_dnsname_dns_name_key | UNIQUE btree (dns_name)