- Added: automatic definition of traits for Active Record enum attributes, enabled by default
- Added:
traits_for_enum
method to define traits for non-Active Record enums - Added:
build_stubbed_starting_id=
option to define the starting id forbuild_stubbed
- Removed: deprecated methods on the top-level
FactoryBot
module meant only for internal use - Removed: support for EOL versions of Ruby (2.3, 2.4) and Rails (4.2)
- Removed: support for "abstract" factories with no associated class; use traits instead.