mardi 1 mars 2016

IN Query by using List of Object in Rails

I am new to rails , I try to make a Query lets suppose.

Table1(id,subjectId)
Table2(id,subjectId)

Now I have list of Table2 Object in a Object. And now I want to find all those objects from Table1 whose subject id in matches in List of table2 Object . Something like IN Query of Postgres

Aucun commentaire:

Enregistrer un commentaire