code/prototype/vendor/bundle/ruby/2.3.0/gems/activerecord-5.0.7/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) 
          table_name = table_name.to_s
          column_definitions(table_name).map do |column_name, type, default, notnull, oid, fmod, collation, comment|
            oid = oid.to_i
            fmod = fmod.to_i
            type_metadata = fetch_type_metadata(column_name, type, oid, fmod)
            default_value = extract_value_from_default(default)
            default_function = extract_default_function(default_value, default)
            new_column(column_name, default_value, type_metadata, !notnull, table_name, default_function, collation, comment: comment.presence, max_identifier_length: max_identifier_length)
          end
        end
def columns ( table_name ) table_name = table_name . to_s column_definitions ( table_name ) . map do | column_name , type , default , notnull , oid , fmod , collation , comment | oid = oid . to_i fmod = fmod . to_i type_metadata = fetch_type_metadata ( column_name , type , oid , fmod ) default_value = extract_value_from_default ( default ) default_function = extract_default_function ( default_value , default ) new_column ( column_name , default_value , type_metadata , ! notnull , table_name , default_function , collation , comment : comment . presence , max_identifier_length : max_identifier_length ) end end
Returns the list of all column definitions for a table.
Returns the list of all column definitions for a table .
# :nodoc:
table_name
<not_specific>