`to_key` return value

`to_key` was first introduced in

As far as I can tell, we have never actually needed to wrap the primary key in an array and don't have its use anywhere.

Thoughts on changing this behaviour and just returning single primary field instead?

Thanks,

The composite_primary_key user community probably have an opinion on this. They’d be stuck making workarounds to replace this:

https://github.com/composite-primary-keys/composite_primary_keys/blob/7a519429600715f7140f3dcda5efe18c73976996/lib/composite_primary_keys/base.rb#L126

—Matt Jones

They need to return a unique value, not necessarily an array. This shouldn’t affect them.