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

Option to delete after import???? #7

Open
theSteveMitchell opened this issue Feb 20, 2015 · 1 comment
Open

Option to delete after import???? #7

theSteveMitchell opened this issue Feb 20, 2015 · 1 comment

Comments

@theSteveMitchell
Copy link
Owner

It would be great to have a way to delete records that are not included in an import. Not sure how that works. Possibly after an import:

@timestamp = dateTime.now.
User.pg_upsert...
User.pg_upsert...
User.pg_upsert...
User.pg_drop(@timestamp)

...That only buys some small syntax sugar above User.delete_all('updated_at < "#{@timestamp}'')

or possibly

User.delete_after do
     User.pg_upsert...
     User.pg_upsert...
     User.pg_upsert...
end
@theSteveMitchell
Copy link
Owner Author

👍

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