Class: ActiveRecord::ConnectionAdapters::PostgreSQL::TableDefinition

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

Instance Attribute Summary collapse

Attributes inherited from TableDefinition

#as, #comment, #foreign_keys, #if_not_exists, #indexes, #name, #options, #temporary

Instance Method Summary collapse

Methods included from ColumnMethods

#primary_key

Methods inherited from TableDefinition

#[], #column, #columns, #foreign_key, #index, #new_column_definition, #primary_keys, #references, #remove_column, #timestamps

Methods included from ColumnMethods

#primary_key

Constructor Details

#initializeTableDefinition

Returns a new instance of TableDefinition.



189
190
191
192
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 189

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

Instance Attribute Details

#unloggedObject (readonly)

Returns the value of attribute unlogged.



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

def unlogged
  @unlogged
end