Flatten primary keys once in schema.rb.