NoBrainerORM / nobrainer

Ruby ORM for RethinkDB
http://nobrainer.io/
Other
387 stars 49 forks source link

Fixes `first_or_create` with polymorphic association (Closes #288) #289

Closed zedtux closed 2 years ago

zedtux commented 2 years ago

Closes #288

This PR fixes running Model.where(...).first_or_create.

The NoBrainer documentation needs to be updated in order to tell about the uniq: true or unique: true option to be set in order to get the first_or_create to work.