annotate_models icon indicating copy to clipboard operation
annotate_models copied to clipboard

Include default functions when annotating models

Open wasabigeek opened this issue 4 years ago • 1 comments

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

wasabigeek avatar Feb 23 '21 06:02 wasabigeek

is there any news on this one?

daniel-g avatar Jun 22 '22 18:06 daniel-g