Rake db:schema:dumper issues

In file
in method SchemaDumper#table
there are these three lines:

column_specs = columns.map do |column|
raise StandardError, “Unknown type ‘#{column.sql_type}’
for column ‘#{column.name}’” if @types[column.type].nil?
next if column.name == pk

Shouldn’t it test for column.name == pk before
column.type is nil for primary keys as far as I can see in the
connection adapters (its value is got from

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs