2015-02-28 2 views
0

Могут ли вы помочь мне использовать 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.

+0

Я думаю, вы хотели пометить это «erd' not' erb' ... – Jon

ответ

1

Я думаю, это было бы rake erd attributes=primary_keys,timestamps.

+0

Пробовал это и получил его обратно: – Josh

+0

это «rake erd attributes = primary_keys, timestamps» без двух тире. – AnkitG