I have 4 tables (Cars
, Vignettes
, Inspections
and Insurances
). Vignettes, Inspections and Insurances are "belongsTo" to Cars.
I need to combine results of these three tables into one query and sorting by 'created_at' and take first 3-4 of them. How can I achieve that?
All of the three tables have same column names and types