简体   繁体   中英

Adding comments to the database

Until I think rails 5 (inclusive), one could add comments to the migration file, which then is dumped to the schema file. Will it be supported with rails 6 also ?

Thanks for any information.

in Rails 5 the support of adding comments in migrations was implemented https://github.com/rails/rails/pull/22911

the code is still present in the 6.0 stable branch https://github.com/rails/rails/blob/6-0-stable/activerecord/lib/active_record/connection_adapters/abstract/schema_creation.rb#L88

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM