class ActiveRecord::ConnectionAdapters::PostgreSQL::TableDefinition

Attributes

unlogged[R]

Public Class Methods

new(*, **) click to toggle source
# File lib/active_record/connection_adapters/postgresql/schema_definitions.rb, line 197
def initialize(*, **)
  super
  @unlogged = ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.create_unlogged_tables
end

Private Instance Methods

aliased_types(name, fallback) click to toggle source
# File lib/active_record/connection_adapters/postgresql/schema_definitions.rb, line 212
def aliased_types(name, fallback)
  fallback
end
integer_like_primary_key_type(type, options) click to toggle source
# File lib/active_record/connection_adapters/postgresql/schema_definitions.rb, line 216
def integer_like_primary_key_type(type, options)
  if type == :bigint || options[:limit] == 8
    :bigserial
  else
    :serial
  end
end