Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BikeLock.where("reported_at is not null").order(reported_at: :desc).each do |l|
- file << l.status << "," << l.lock_state << "," << l.plate_number << ","
- file << l.imei << "," << l.iccid << "," << l.sim_sid << ","
- file << l.reported_at << "," << l.lock_state_updated_at
- file << "\n"
- end
- file.close
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement