You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@diogomaximo if using Postgres and activerecord-import 0.8.0+ you can do
result = Entry.import entries
ids = result.ids
Issue #247 would provide the same functionality to MySQL and SQLite once implemented.
Otherwise you could possibly make a work around by setting the created_at timestamp or some import identifier and querying by that to get the records with their ids from the database.
How can i get the inserted ids of my array object?
Can i do something like that:
ids = Entry.import entries
The text was updated successfully, but these errors were encountered: