Class: ActiveRecord::ConnectionAdapters::PostgreSQL::TableDefinition
- Inherits:
-
TableDefinition
- Object
- TableDefinition
- ActiveRecord::ConnectionAdapters::PostgreSQL::TableDefinition
- Includes:
- ColumnMethods
- Defined in:
- activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb
Instance Attribute Summary collapse
-
#unlogged ⇒ Object
readonly
Returns the value of attribute unlogged.
Attributes inherited from TableDefinition
#as, #comment, #foreign_keys, #if_not_exists, #indexes, #name, #options, #temporary
Instance Method Summary collapse
-
#initialize ⇒ TableDefinition
constructor
A new instance of TableDefinition.
Methods included from ColumnMethods
Methods included from ActiveSupport::Concern
#append_features, #class_methods, extended, #included
Methods inherited from TableDefinition
#[], #column, #columns, #foreign_key, #index, #new_column_definition, #primary_keys, #references, #remove_column, #timestamps
Methods included from ColumnMethods
Constructor Details
#initialize ⇒ TableDefinition
Returns a new instance of TableDefinition.
189 190 191 192 |
# File 'activerecord/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
#unlogged ⇒ Object (readonly)
Returns the value of attribute unlogged
187 188 189 |
# File 'activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 187 def unlogged @unlogged end |