79635302

Date: 2025-05-23 10:13:52
Score: 4
Natty:
Report link

I tried this approach and still all in vain. Any ideas??

Model.import(
  [:id, :status_id],
  model_objects.map { |model| [model.id, status_id] },
  callbacks: true,
  on_duplicate_key_update: { conflict_target: [:id], columns: [:status_id] }
)
Reasons:
  • Blacklisted phrase (1): Any ideas
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Umar Mahmood