jeudi 14 mars 2019

Are both rails query return the same record?

Resume.joins(:languages, :publications).where('first_name LIKE ? OR last_name LIKE ? OR email LIKE ?', "%abcd%", "%abcd%", "%abcd%")


Resume.where('first_name LIKE ? OR last_name LIKE ? OR email LIKE ?', "%abcd%", "%abcd%", "%abcd%")

I am using the Rails 3.2

Aucun commentaire:

Enregistrer un commentaire