Class: ActiveRecord::Materialized::MetadataRecord Private

Inherits:
Base
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/activerecord/materialized/metadata_record.rb

Overview

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

ActiveRecord model backing the materialized-view metadata table.

Class Method Summary collapse

Class Method Details

.table_nameObject

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



22
23
24
25
# File 'lib/activerecord/materialized/metadata_record.rb', line 22

def self.table_name
  override = @table_name_override
  override.nil? ? ::ActiveRecord::Materialized. : override
end

.table_name=(name) ⇒ Object

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



17
18
19
# File 'lib/activerecord/materialized/metadata_record.rb', line 17

def self.table_name=(name)
  @table_name_override = name
end