active_designer
1.0.0
Active Designer是一个GEM,它允许用户轻松地为SQL数据库创建其Active Record Schema.RB文件的视觉格式。只需从命令行中的一个命令,它就会在用户Ruby项目的根部创建一个HTML文件。 Active Designer是一种易于使用的视觉界面,可在浏览器中本地打开,并在离线上运行到Crud表和列!
安装宝石。
$ gem install active_designer
这应该输出:
Successfully installed active_designer-1.1.4
Parsing documentation for active_designer-1.1.4
Done installing documentation for active_designer after 0 seconds
1 gem installed
从项目的根部运行命令:
$ active_designer --create pathway_to_db eg(./db/schema.rb)
Created active_designer/index.html
现在您准备打开刚创建的文件
$ open active_designer/index.html
玩得开心!