Home Blog
Now Rails 6 have support to bulk insert data using ActiveRecord. You should pass an array of hashes into the insert_all method (like the below example) to insert multiple rows in a single SQL query.
I know you already aware of the support of pluck method in RoR and ActiveRecord. Using it you can pluck the values of an array column (or a table column) by its name.
Software Engineer at Discourse