module DBDiagram
DBDiagram.options
.orientation = :vertical DBDiagram.options
.title = “My model diagram”
Constants
- VERSION
Attributes
options[RW]
Access to default options. Any instance of DBDiagram::Domain
and DBDiagram::Diagram
will use these options unless overridden.
Public Class Methods
default_options()
click to toggle source
# File lib/db_diagram.rb, line 14 def default_options ActiveSupport::OrderedOptions[ :attributes, :true, #显示全部字段,调用Attribute#true? :filename, nil, #nil时文件名为数据库名 :filetype, :png, :markup, true, :notation, :simple, #显示式样 :orientation, :horizontal, #排列方向,横向 :sort, false, #字段不排序 :warn, true, :title, true, :exclude, nil, #不显示的表名,例:[:admins, users] :only, nil, #只显示的表名,例:[:admins, users] :only_recursion_depth, nil, :prepend_primary, true, #把主键放在最前面 :cluster, false, ] end