Ruby on Rails, Activerecord, MySQL, Database.
the model attributes, but only a few. Use pluck to query the needed attribute(s) and return them as an array of strings instead of an ActiveRecord_Relation. However, if an ActiveRecord_Relation is needed , use select instead. Check existence of record with `exists?` instead of `present?` Sometimes,