Rails 7.1 supports composite primary keys so the return type will either be a string or an array of strings, depending on the pk type. I've added a test for that case.
I was a bit surprised that the tests don't go through resolve_database_info_from_model. I guess because it would involve the runner and require db setup? Anyways, I tested it manually and this is what it looks like:
Closes #313
Rails 7.1 supports composite primary keys so the return type will either be a string or an array of strings, depending on the pk type. I've added a test for that case.
I was a bit surprised that the tests don't go through
resolve_database_info_from_model
. I guess because it would involve the runner and require db setup? Anyways, I tested it manually and this is what it looks like: