Sorry, this would have made more sense:

Is there a way to create multiple records in one record call, such
as:
ItemTag.create_many(
  :item_id => 123,
  :tag_id => ['new','urgent','important']
)
# =>
# INSERT INTO item_tags (item_id, tag_id) VALUES
# (123,45),
# (123,67),
# (123,89);

On Apr 1, 5:53 pm, Shawn <[email protected]> wrote:
> Is there a way to create multiple records in one record call, such as:
>
> ItemTag.create_many(
>   :item_id => 123,
>   :tag => [45,67,89]
> )
>
> # =>
> # INSERT INTO item_tags (item_id, tag) VALUES
> # (123,45),
> # (123,67),
> # (123,89);
>
> Shawn

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en.

Reply via email to