1217127703
Given a model with a composite primary key like: `TravelRoute.primary_key = [:from, :to]` Calling `TravelRoute.ids` would return an array of identifiers which is represented by an array of arrays: ```ruby TravelRoute.all.ids # => [["Ottawa", "New York"], ["London", "Paris"]] ``` |
||
---|---|---|
.. | ||
active_record | ||
arel | ||
rails/generators | ||
active_record.rb | ||
arel.rb |