Files
ubicloud/model/firewalls_private_subnets.rb
Jeremy Evans e26412a41e Override Model.ubid_type before including ResourceMethods
This avoids an exception per class during class loading.

For FirewallsPrivateSubnets and CertsLoadBalancers, this defines
a ubid_type method when one was previously not defined.  This
method isn't used, since these models do not have an id field
currently.  I'm guessing these models only use ResourceMethods
for the before_destroy hook, so potentially, that could be moved
to a separate module, or we could use a trigger approach to
updating the archive table instead of a model hook approach.
2025-02-26 09:23:01 -08:00

23 lines
659 B
Ruby

# frozen_string_literal: true
require_relative "../model"
class FirewallsPrivateSubnets < Sequel::Model
def self.ubid_type
UBID::TYPE_ETC
end
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)