Is there any way to ignore attributes? For example, I wrote the following attribute.
attribute :text, default: -> { Time.current.strftime("%Y/%m/%d %H:%M") }
annotate_models gem generated following annotate. It is a hindrance for version control.
# text :string default("2024/01/31 21:22"), not null
In my opinion, what we want to see is the DB definition. Reflecting an attribute seems like overkill.
Is it possible to do any of the following?
- not refer to the attribute
- Options like
exclude_files that do not target certain files for annotate_models
Commands
Version
- annotate (3.2.0)
- rails (6.1.7)
- ruby 3.1.2p20
Is there any way to ignore attributes? For example, I wrote the following attribute.
annotate_models gem generated following annotate. It is a hindrance for version control.
In my opinion, what we want to see is the DB definition. Reflecting an attribute seems like overkill.
Is it possible to do any of the following?
exclude_filesthat do not target certain files for annotate_modelsCommands
Version