install
script/plugin install http://svn.pragprog.com/Public/plugins/annotate_models
使い方
rake annotate_models
これで、
# == Schema Information # Schema version: 13 # # Table name: categories # # id :integer(11) not null, primary key # name :string(255) # class Category < ActiveRecord::Base has_many :theme, :dependent => :destroy
こんな感じのができ上がる。便利。
本文介绍了一个 Rails 插件的安装与使用方法,通过运行特定命令可以自动生成数据库表结构注释,方便开发者理解和维护。此工具适用于 Rails 应用程序中,能有效提高开发效率。
737

被折叠的 条评论
为什么被折叠?



