首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Rails ERD定制

Rails ERD定制
EN

Stack Overflow用户
提问于 2015-02-28 05:50:58
回答 1查看 790关注 0票数 0

您能帮助我使用自定义选项 of Rails ERD生成一个显示主键时间戳属性的图表吗?

我怎么把这个写进irb终端?这就是我试过的:

代码语言:javascript
复制
$ rake erd primary_keys, timestamps

GitHub列出了自定义选项,但我不了解如何编写属性

代码语言:javascript
复制
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

谢谢。

EN

回答 1

Stack Overflow用户

发布于 2015-02-28 06:37:34

我想应该是rake erd attributes=primary_keys,timestamps

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/28778623

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档