Closed jmuheim closed 10 years ago
Hi
Is it possible to have more than one field as scope?
increments :number, scope: [:client_id, :some_other_field]
Thank you.
Ah, I see how to do this using a scope: scope: -> { "#{client_id}_#{some_other_field}" }.
scope: -> { "#{client_id}_#{some_other_field}" }
Hi
Is it possible to have more than one field as scope?
Thank you.