I would like to know if there is a Rails way to create multiple records by passing in an array of attributes.
For instance, instead of
MyModel.create
According the documentation you can create records from an array of hashes:
The attributes parameter can be either be a Hash or an Array of Hashes. These Hashes describe the attributes on the objects that are to be created.
MyModel.create([{attr_1: some_attr, attr_2: 4}, {attr_1: some_attr, attr_2: 5}])