Class: ActiveRecord::ConnectionAdapters::Materialize::TableDefinition

Inherits:
TableDefinition
  • Object
show all
Includes:
ColumnMethods
Defined in:
lib/active_record/connection_adapters/materialize/schema_definitions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ColumnMethods

#primary_key

Constructor Details

#initializeTableDefinition

Returns a new instance of TableDefinition.



186
187
188
189
# File 'lib/active_record/connection_adapters/materialize/schema_definitions.rb', line 186

def initialize(*, **)
  super
  @unlogged = ActiveRecord::ConnectionAdapters::MaterializeAdapter.create_unlogged_tables
end

Instance Attribute Details

#unloggedObject (readonly)

Returns the value of attribute unlogged.



184
185
186
# File 'lib/active_record/connection_adapters/materialize/schema_definitions.rb', line 184

def unlogged
  @unlogged
end