I use active_record_doctor to identify potential database issues or risks.
When I run $ bin/rake active_record_doctor after I added flipper-active_record, I received the following recommendations:
add a `presence` validator to Flipper::Adapters::ActiveRecord::Gate.feature_key - it's NOT NULL but lacks a validator
add a `presence` validator to Flipper::Adapters::ActiveRecord::Gate.key - it's NOT NULL but lacks a validator
add a `presence` validator to Flipper::Adapters::ActiveRecord::Feature.key - it's NOT NULL but lacks a validator
This is a minor thing in my opinion.
I use
active_record_doctor
to identify potential database issues or risks.When I run
$ bin/rake active_record_doctor
after I addedflipper-active_record
, I received the following recommendations:Ref. https://github.com/gregnavis/active_record_doctor?tab=readme-ov-file#detecting-missing-presence-validations
This pull request adds these validators.