activerecord-ghosts 0.0.1
ActiveRecord::Ghosts allows you to define a sequence column and query with ranges to get real + ghost records. Ghost records behave like AR objects but aren't persisted, perfect for filling gaps in sequences like levels, numbers, etc.
Gemfile:
=
安裝:
=
Runtime 相依性套件 (1):
activerecord
>= 6.0
Development 相依性套件 (8):
factory_bot
>= 0
rails
>= 7.0, < 9.0
rspec
~> 3.0
rspec-rails
>= 0
rubocop
~> 1.21
sqlite3
~> 1.4
standard
>= 1.35.1