Могут ли вы помочь мне использовать Options кастомизации рельсы ERD для создания диаграммы, которая отображает первичных ключам и временную метки атрибутов.Rails ERD Настройка
Как написать это в терминал irb? Это то, что я пробовал:
$ rake erd primary_keys, timestamps
GitHub список Настройка параметров в, но я не понимая, как писать атрибуты.
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
Thanks.
Я думаю, вы хотели пометить это «erd' not' erb' ... – Jon