Categories: None [Edit]
styxable
Styxable turns deletion into a three-stage lifecycle for ActiveRecord models: active,
archived, purged. Calling styx_archive soft-deletes a record — it (optionally) vanishes
from default scopes like being in a trash can or recycle bin, but the row survives, so foreign
keys, joins, reports and audits keep working. Archived records can still be listed,
counted and restored during a configurable grace or retention period, giving you an undo window or
restore window instead of an irreversible destroy.
While a record sits in the archive it is immutable: writes are rejected, so nothing can
be silently edited between archiving and erasure — like in a vault.
styx_unarchive brings a record back, unless it cannot, for example when
a newer record has claimed a unique attribute in the meantime. Archiving cascades along
dependent: associations, so closing an account, deactivating a user or tearing down a
tenant can archive everything it owns in a single call, with callbacks around each step.
Each model declares its own data retention period. A recurring background job then permanently
destroys records whose retention window has expired, expressing your retention schedule,
records disposition and automatic purge in code rather than in a runbook — useful for
GDPR storage limitation and right to erasure ("right to be forgotten") obligations, or
any policy with a TTL or expiry date. A before-purge callback lets you detach
ActiveStorage blobs, delete remote files or notify external systems before a record
crosses the Styx for good.
Total
Ranking: 185,019 of 197,744
Downloads: 1,746
Daily
Ranking: 105,941 of 197,724
Downloads: 1
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 1 | 3,863,547,421 | bundler |
| 8 | 1,444,561,272 | rake |
| 29 | 1,032,112,907 | rspec |
| 55 | 763,949,454 | rubocop |
| 62 | 719,652,724 | zeitwerk |
| 181 | 303,246,954 | rubocop-rspec |
| 213 | 259,290,434 | irb |
| 355 | 150,201,828 | bundler-audit |
| 1,088 | 46,350,691 | rubocop-rake |
| 1,236 | 40,012,857 | amazing_print |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | mediafinger |