Module: ActiveRecord::Materialized::ConfigurableTableName Private

Extended by:
ActiveSupport::Concern
Included in:
MetadataRecord, PartitionRecord, SourceWatermarkRecord, WriteOutboxRecord
Defined in:
lib/activerecord/materialized/configurable_table_name.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Dynamic table-name resolution shared by the gem's internal AR models (metadata, partition, write-outbox). The default name is re-read from its configured source on every access, so a host app can rename the table via configure; a test or app can still pin an explicit name with self.table_name = "x", which then wins. Factored out of the three models so the order-sensitive idiom lives in one place.