Skip to content

Instantly share code, notes, and snippets.

@dyanagi
Last active March 24, 2019 10:58
Show Gist options
  • Save dyanagi/bded3e6b66463ab6496b4255c5d9d840 to your computer and use it in GitHub Desktop.
Save dyanagi/bded3e6b66463ab6496b4255c5d9d840 to your computer and use it in GitHub Desktop.
Rails ERD Config Example
attributes:
# - primary_key
- foreign_key
- content
- inheritance
disconnected: true
filename: erd
filetype: pdf
indirect: true
inheritance: false
markup: true
notation: simple
# The result will be changed when adding orientation in both cases setting 'vertical' or 'horizontal'
#orientation: vertical
polymorphism: false
sort: true
warn: true
title: true
# When auto-generated on db:migration, some models are added and are better to exclude
exclude:
# - ApplicationRecord
- ActiveRecord::SchemaMigration
- ActiveRecord::InternalMetadata
only: null
only_recursion_depth: null
prepend_primary: false
cluster: false
splines: spline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment