Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

At end of import only update imported locations #363

Open
monfresh opened this issue Sep 4, 2015 · 0 comments
Open

At end of import only update imported locations #363

monfresh opened this issue Sep 4, 2015 · 0 comments

Comments

@monfresh
Copy link
Member

monfresh commented Sep 4, 2015

To fix:

  • Add an imported_ids method to LocationImporter that creates an array of ids from locations.csv
  • Add a where clause to limit the query to the imported ids: Location.where(id: imported_ids).update_all(updated_at: Time.zone.now)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant