Add insert_many to ActiveRecord models by boblail · Pull Request #35077 · rails/rails
Options [:returning] (Postgres-only) An array of attributes that should be returned for all successfully inserted records. For databases that support INSERT ... RETURNING, this will default to re...