- Rails 8.0 brings some changes, the data is correctly recorded as BINARY in SQLite, so we can simplify the code, but too stay compatible the code is less simple.
- Relax Gem Spec Constraints
- Fix Zeitwerk::NameError
- Check if created_at is present
Configure The Behaviours When UUID Is Invalid
UuidV7.configure do |config|
config.throw_invalid_uuid = false
end
record_class.find_by(uuid: "invalid")
=> nil
UuidV7.configure do |config|
config.throw_invalid_uuid = true
end
record_class.find_by(uuid: "invalid")
raise_error(UuidV7::Types::InvalidUUID, "invalid is not a valid UUID")
Fix wrong default field name. Change from :uuid to :id
- Initial release