class ActiveRecord::ConnectionAdapters::PostgreSQL::TableDefinition
Attributes
unlogged[R]
Public Class Methods
new(*, **)
click to toggle source
Calls superclass method
ActiveRecord::ConnectionAdapters::TableDefinition::new
# File lib/active_record/connection_adapters/postgresql/schema_definitions.rb, line 189 def initialize(*, **) super @unlogged = ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.create_unlogged_tables end
Private Instance Methods
integer_like_primary_key_type(type, options)
click to toggle source
# File lib/active_record/connection_adapters/postgresql/schema_definitions.rb, line 195 def integer_like_primary_key_type(type, options) if type == :bigint || options[:limit] == 8 :bigserial else :serial end end