Rails 6 adds ActiveRecord::Relation pick
16-Jan-2019 2645
Before Rails 6, selecting only the first value for a column from a set of records was cumbersome. Let’s say we want only the first name from all the posts with category “Rails 6”.
Rails 6 adds ActiveRecord::Relation pick #ruby #rubydeveloper #rubyonrails #Rails #ActiveRecord::Relation #activerecord::relation https://rubyonrails.ba/link/rails-6-adds-activerecord-relation-pick