Comments (3)
You can use the --filename
option to specify the path to where you want the ERD file to be generated. This path also includes the file basename. For example, when I run the following
bundle exec erd --open --attributes content --filetype pdf --filename path/to/erd-filename
the diagram is generated and stored as path/to/erd-filename.pdf
.
Notes
- The directories in the path must already exist before running the above command. In my example above, the
path
andto
directories already exist. - I've only tried this on MacOS. I assume the same would apply on any unix-like OS where
/
delimits directories in a path. Not sure of the support for Windows delimiters.
from rails-erd.
The docs site is a bit outdated, but if someone wants to add this to the README... 👍
from rails-erd.
But is there a way to put it in a config? I mean I want it to be there after rake db:migrate
.
from rails-erd.
Related Issues (20)
- Error when trying to run on Ubuntu HOT 3
- Polluting global scope with rake task helper method
- rails-red conflicts with discard gem HOT 1
- Add instructions for how to use rails-erd in a gem
- Bug with --only and -only_recursion_depth
- Rails 7 deprecation warnings HOT 1
- FrozenError: can't modify frozen String: "boolean" HOT 4
- Clarify how to customise output directory
- Warnings on Rails internal tables that have not been created HOT 2
- Spec failure on Graphviz fonts when running locally
- Disabling auto-generate on db:migrate HOT 2
- Use translations for models and attributes
- rails db:migrate
- compond foreign key to_sym on Array during rake db:migrate HOT 1
- Assertion failed: (filename && *filename), function try_dlopen, file ltdl.c, line 1204. HOT 1
- Can I customize the data instead of auto-generating it from my ActiveRecord relations?
- Enhancment: Mermaid style uses classDiagram, not erDiagram
- NoMethodError: undefined method `name' for nil:NilClass (seems to be related to PaperTrail)
- Support Eclipse Layout Kernel
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rails-erd.