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

NoMethodError: undefined method `comment' for #<ActiveRecord::ConnectionAdapters::PostgreSQLColumn> #78

Open
nirname opened this issue Nov 8, 2023 · 0 comments

Comments

@nirname
Copy link

nirname commented Nov 8, 2023

While running

rake mermaid_erd

I face the following issue

NoMethodError: undefined method `comment' for #<ActiveRecord::ConnectionAdapters::PostgreSQLColumn:0x000055d5602cb3a8>
Called from /usr/local/bundle/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:238:in `block in load_dependency'
-- foreign_keys("delayed_jobs")
   -> 0.0020s
rake aborted!
NoMethodError: undefined method `comment' for #<ActiveRecord::ConnectionAdapters::PostgreSQLColumn:0x0000563d69c1a370>
/usr/local/bundle/gems/rails-mermaid_erd-0.1.2/lib/rails-mermaid_erd.rb:43:in `block (3 levels) in <module:RailsMermaidErd>'
/usr/local/bundle/gems/rails-mermaid_erd-0.1.2/lib/rails-mermaid_erd.rb:32:in `each'
/usr/local/bundle/gems/rails-mermaid_erd-0.1.2/lib/rails-mermaid_erd.rb:32:in `block (2 levels) in <module:RailsMermaidErd>'
/usr/local/bundle/gems/rails-mermaid_erd-0.1.2/lib/rails-mermaid_erd.rb:18:in `each'
/usr/local/bundle/gems/rails-mermaid_erd-0.1.2/lib/rails-mermaid_erd.rb:18:in `block in <module:RailsMermaidErd>'
/usr/local/bundle/gems/rake-13.0.3/lib/rake/task.rb:281:in `block in execute'
/usr/local/bundle/gems/rake-13.0.3/lib/rake/task.rb:281:in `each'
/usr/local/bundle/gems/rake-13.0.3/lib/rake/task.rb:281:in `execute'
/usr/local/bundle/gems/rake-13.0.3/lib/rake/task.rb:219:in `block in invoke_with_call_chain'
/usr/local/lib/ruby/2.6.0/monitor.rb:235:in `mon_synchronize'
/usr/local/bundle/gems/rake-13.0.3/lib/rake/task.rb:199:in `invoke_with_call_chain'
/usr/local/bundle/gems/rake-13.0.3/lib/rake/task.rb:188:in `invoke'
/usr/local/bundle/gems/rake-13.0.3/lib/rake/application.rb:160:in `invoke_task'
/usr/local/bundle/gems/rake-13.0.3/lib/rake/application.rb:116:in `block (2 levels) in top_level'
/usr/local/bundle/gems/rake-13.0.3/lib/rake/application.rb:116:in `each'
/usr/local/bundle/gems/rake-13.0.3/lib/rake/application.rb:116:in `block in top_level'
/usr/local/bundle/gems/rake-13.0.3/lib/rake/application.rb:125:in `run_with_threads'
/usr/local/bundle/gems/rake-13.0.3/lib/rake/application.rb:110:in `top_level'
/usr/local/bundle/gems/rake-13.0.3/lib/rake/application.rb:83:in `block in run'
/usr/local/bundle/gems/rake-13.0.3/lib/rake/application.rb:186:in `standard_exception_handling'
/usr/local/bundle/gems/rake-13.0.3/lib/rake/application.rb:80:in `run'
/usr/local/bundle/gems/rake-13.0.3/exe/rake:27:in `<top (required)>'
/usr/local/bundle/bin/rake:23:in `load'
/usr/local/bundle/bin/rake:23:in `<top (required)>'
/usr/local/bundle/gems/bundler-1.17.3/lib/bundler/cli/exec.rb:74:in `load'
/usr/local/bundle/gems/bundler-1.17.3/lib/bundler/cli/exec.rb:74:in `kernel_load'
/usr/local/bundle/gems/bundler-1.17.3/lib/bundler/cli/exec.rb:28:in `run'
/usr/local/bundle/gems/bundler-1.17.3/lib/bundler/cli.rb:463:in `exec'
/usr/local/bundle/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/usr/local/bundle/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/usr/local/bundle/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
/usr/local/bundle/gems/bundler-1.17.3/lib/bundler/cli.rb:27:in `dispatch'
/usr/local/bundle/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
/usr/local/bundle/gems/bundler-1.17.3/lib/bundler/cli.rb:18:in `start'
/usr/local/bundle/gems/bundler-1.17.3/exe/bundle:30:in `block in <top (required)>'
/usr/local/bundle/gems/bundler-1.17.3/lib/bundler/friendly_errors.rb:124:in `with_friendly_errors'
/usr/local/bundle/gems/bundler-1.17.3/exe/bundle:22:in `<top (required)>'
/usr/local/bundle/bin/bundle:23:in `load'
/usr/local/bundle/bin/bundle:23:in `<main>'

Rails 4.2
Using rails-mermaid_erd 0.1.2

I know that 4.2. is not maintained anymore, but in case older versions of Rails are not supported there probably should be a dependency.

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