Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. `Vehicle.where(vin_status: :invalid).where('vin in (?)', reload_vins)`.
  2.  
  3. Vehicle.where(vin_status: :invalid)
  4. .joins("
  5. join temp_cars.reload_cars tcar
  6. on tcar.vin = vehicles.vin
  7. where tcar.registration_id is not null
  8. ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement