activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb
# Returns the list of all column definitions for a table.
Returns the list of all column definitions for a table.
Returns the list of all column definitions for a table .
def columns(table_name)
          column_definitions(table_name).map do |column_name, type, default, notnull, oid, fmod|
            oid = OID::TYPE_MAP.fetch(oid.to_i, fmod.to_i) {
              OID::Identity.new
            }
            PostgreSQLColumn.new(column_name, default, oid, type, notnull == 'f')
          end
        end
def columns ( table_name ) column_definitions ( table_name ) . map do | column_name , type , default , notnull , oid , fmod | oid = OID :: TYPE_MAP . fetch ( oid . to_i , fmod . to_i ) { OID :: Identity . new } PostgreSQLColumn . new ( column_name , default , oid , type , notnull == 'f' ) end end
Returns the list of all column definitions for a table.
Returns the list of all column definitions for a table .
# Limit, precision, and scale are all handled by the superclass.
table_name