Home Rails 使用annotate_model 对model进行注释
Post
Cancel

Rails 使用annotate_model 对model进行注释

参考:https://github.com/ctran/annotate_models

这个gem 会自动的在某个model下面,加上注释. 

# == Schema Info
#
# Table name: trips
#
#  local           :geometry        point, 4326
#  path            :geometry        line_string, 4326

但是我觉得好多余啊. 直接用mysql来看不更方便么?

删掉的办法: 直接在Gemfile中,删掉  gem 'annotate' 就可以了.

This post is licensed under CC BY 4.0 by the author.