Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Domain Model shows only ActiveRecord::SchemaMigration #346

Open
slhodak opened this issue Nov 11, 2019 · 0 comments
Open

Domain Model shows only ActiveRecord::SchemaMigration #346

slhodak opened this issue Nov 11, 2019 · 0 comments

Comments

@slhodak
Copy link

slhodak commented Nov 11, 2019

Hi all,

Apologies in advance for the inexperience that may be reflected in this question. I'd really like to get rails-erd to work, but I'm getting a strange output.

Environment

Ruby 2.4.3; Sinatra 2.6.14; ActiveRecord 4.2.8; MySQL 5.7.
The database is running in a Docker service on my local machine.

Output

I'm generating a model (erd.pdf) that has one element in it, titled "ActiveRecord::SchemaMigrations," with one property: "version: string *".

Output with bundle exec erd:

Loading application in '***'...
Generating entity-relationship diagram for 1 models...
Diagram saved to 'erd.pdf'.

Trace with rake:

** Invoke erd (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute erd

Procedure

Added the rails-erd gem and re-ran bundle install.
$ bundle exec erd

I also saw instructions regarding Sinatra and created a rake task that calls "RailsERD::Diagram::Graphviz.create," then ran
$ bundle exec rake erd

Both methods produce the same single-element model (there are about 50 files in models/ ).

I hope you can tell from the symptoms what could be going wrong--please let me know if there is anything else useful I can share.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant