ActiveRecord: Select which sequence to use

I’m using rails with PostgreSQL.

I have a table which have two different sequences (generators).
One should be used when administrators are saving rows, and one when
regular users are doing it.

How can I tell rails to use a specific sequence (generator)?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs