You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 improving it, if you don't mind 😄
Wdyt on supporting scopes as belongs_to association names:
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 improving it, if you don't mind 😄
scope
s asbelongs_to
association names:It looks more natural to me, than specifying column names and simplifies the setup when
belongs_to
is polymorphic.sequenced/lib/sequenced/generator.rb
Lines 52 to 56 in 2c279c0
Whole table locks are very heavyweight and dangerous (see lock queueing in PostgreSQL) and are really not needed. I suggest locking only the parent record (if
:scope
is for parent record) usingSELECT ... FOR UPDATE
(https://api.rubyonrails.org/v5.2/classes/ActiveRecord/Locking/Pessimistic.html), this should be enough.scope
option can be any attribute (not only the foreign key of an associated parent object). But what is the use case for this?If these changes are OK, I will start implementing them one by one.
The text was updated successfully, but these errors were encountered: