class ActiveRecord::ConnectionAdapters::PostgreSQL::TableDefinition

def initialize(*, **)

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

def integer_like_primary_key_type(type, options)

def integer_like_primary_key_type(type, options)
  if type == :bigint || options[:limit] == 8
    :bigserial
  else
    :serial
  end
end