您能帮助我使用自定义选项 of Rails ERD生成一个显示主键和时间戳属性的图表吗?
我怎么把这个写进irb终端?这就是我试过的:
$ rake erd primary_keys, timestampsGitHub列出了自定义选项,但我不了解如何编写属性。
attributes <type,...> | false
Specifies which attributes to include in the diagram output. This can be any
combination of the following attribute types:
foreign_keys any foreign key column in use for associations
primary_keys the primary key column (typically id)
timestamps any of the 'magic' timestamp columns (created_at/on,updated_at/on)
inheritance the single table inheritance column (typically type)
*content all other columns
*To hide attributes altogether, set this option to false. Default value: content谢谢。
发布于 2015-02-28 06:37:34
我想应该是rake erd attributes=primary_keys,timestamps。
https://stackoverflow.com/questions/28778623
复制相似问题