annotate_models icon indicating copy to clipboard operation
annotate_models copied to clipboard

[Feature request] add markings so the annotation can be mixed with other comments

Open estani opened this issue 5 years ago • 1 comments

The comment block get replaced completely, which prevents other annotations/documentation for being used in the same position.

Proposed solution:

Add a marking to the beginning and end of the annotated comment block, so only that block get removed (and add option to behave like now, so annotations can be migrated)

A block might look like this:

# == Schema Information
#
# Table name: user
# 
#  id              :integer          not null, primary key
# ...
# == End of Schema Information

Everything between # == Schema Information and (optionally?) # == End of Schema Information can be wiped out and recreated, the rest is to be left intact.

estani avatar May 12 '20 07:05 estani

There are --wrapper-open and --wrapper-close params, which, I believe, should be respected in this case (they are not ATM).

ixti avatar Jan 10 '21 15:01 ixti