annotate_models
annotate_models copied to clipboard
Include default functions when annotating models
Annotations will pick up default values but not default functions e.g. CURRENT_TIMESTAMP. Is it possible to add support for this? (Would be willing to contribute if so)
From digging a little, I think this should be accessible via klass.columns_hash[column.name].default_function https://github.com/rails/rails/blob/v6.1.3/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb#L671
is there any news on this one?