sequenced icon indicating copy to clipboard operation
sequenced copied to clipboard

Generate scoped sequential IDs for ActiveRecord models

Results 13 sequenced issues
Sort by recently updated
recently updated
newest added

Good Day :), ### Relations: ```ruby class Bank < ApplicationRecord has_many :accounts has_many :customers, through: :accounts end class Customer < ApplicationRecord has_one :account has_one :bank, through: :account end class Account...

feature request

Required arguments for ActiveRecord::MigrationContext have changed in https://github.com/rails/rails/pull/36439

I am running into an issue where I am getting an ActiveRecord::Deadlocked error ``` PG::TRDeadlockDetected: ERROR: deadlock detected DETAIL: Process 15304 waits for ExclusiveLock on relation 87680265 of database 87679929;...

I needed a way to generate invoice number with user-defined prefix. Thought that 'secondary sequences' can do that and still be useful for other use-cases. Example ```ruby acts_as_sequenced column: :invoice_number_sequential_id,...

feature request

Using a basic install of this doesn't seem to work with 5.2.1. All of the sequential columns are set to 0 and aren't incremented on save. I also noticed it...

I am trying use the attribute `start_at`, but not works. I am using Rails 5.2 and PostgreSQL 10.1.

Thanks for the great gem. It's been working perfectly for me, up until when I tried to use enums as a sequence scope. The issue is here: https://github.com/djreimer/sequenced/blob/master/lib/sequenced/generator.rb#L74 ``` ruby...

I had an idea for a similar gem in my TODO list, but after this week's RubyWeekly I noticed there is one already. So I will invest some effort into...

To test this gem, we really do not need a dummy application. But having it, we need to keep it up to date (to remove warnings etc) and have a...