Files
ubicloud/model/locked_domain.rb
Jeremy Evans a3ca13f2db Make locked_domain.domain column citext instead of text
Domain names should be case insensitive. Update tests to use differing
case and make sure the tests still pass.
2025-07-17 00:44:40 +09:00

18 lines
449 B
Ruby

# frozen_string_literal: true
require_relative "../model"
class LockedDomain < Sequel::Model
unrestrict_primary_key
many_to_one :oidc_provider
end
# Table: locked_domain
# Columns:
# domain | citext | PRIMARY KEY
# oidc_provider_id | uuid | NOT NULL
# Indexes:
# locked_domain_pkey | PRIMARY KEY btree (domain)
# Foreign key constraints:
# locked_domain_oidc_provider_id_fkey | (oidc_provider_id) REFERENCES oidc_provider(id)