Discard
ActiveRecordExtended
Our great sponsors
Discard | ActiveRecordExtended | |
---|---|---|
5 | 2 | |
2,024 | 1,245 | |
- | - | |
6.0 | 4.7 | |
3 months ago | 6 months ago | |
Ruby | Ruby | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Discard
-
Donβt allow associations on discarded records
Hello there! I am using the Discard gem. I basically want new records associated to them to be invalid.
- Accessing point in time data when data changes over time
-
What are the gems that every Ruby dev should know how to use?
discard - a soft-delete implementation that avoids a lot of the gotchas associated with paranoia or acts_as_paranoid gem.
-
Rails application boilerplate for fast MVP development
add discard
-
Looking For Gem Recommendations For Alternatives
indeed discard offers better performance options than paranoia: https://github.com/jhawthorn/discard#working-with-associations
ActiveRecordExtended
-
My project: railstart app
active_record_extended
- What would you consider advanced topics in Rails?
What are some alternatives?
Paranoia - acts_as_paranoid for Rails 5, 6 and 7
BabySqueel - :pig: An expressive query DSL for Active Record
PaperTrail - Track changes to your rails models
Ruby JSON Schema Validator - Ruby JSON Schema Validator
ActsAsParanoid - ActiveRecord plugin allowing you to hide and restore records without actually deleting them.
activerecord_json_validator - π© ActiveRecord::JSONValidator makes it easy to validate JSON attributes against a JSON schema.
arel-helpers - Useful tools to help construct database queries with ActiveRecord and Arel.
Goldiloader - Just the right amount of Rails eager loading
Destroyed At - ActiveRecord Mixin for Safe Destroys
StoreModel - Work with JSON-backed attributes as ActiveRecord-ish models
marginalia - Attach comments to ActiveRecord's SQL queries
ValidatesZipcode - Postal code / zipcode validation for Rails, supporting 233 country codes