has_many_booleans is an ActiveRecord plugin which generates virtual boolean attributes for a model. When the object gets saved, the plugin transforms all attributes into a single integer, using a bitset. So you can easily add new attributes without changing the database structure.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| boolean_attr_accessor ActiveSupport core extension | 0 | 206 | September 14, 2010 | |
| Built in (boolean)? method | 8 | 511 | June 6, 2011 | |
| Predicate method for ActiveModel::Attributes boolean attributes | 0 | 1643 | October 29, 2022 | |
| [Feature request] [ActiveRecord] Automatically create scopes for models boolean attributes | 5 | 266 | January 4, 2018 | |
| Upgrade to Rails 2 - problem with "save" (MySQL boolean issue?) | 9 | 125 | December 23, 2008 |