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 `active_record' for #<Rails::Application::Configuration:0x000056542dcceb88> #114

Open
ryderkun opened this issue Sep 15, 2020 · 1 comment

Comments

@ryderkun
Copy link

redmine-3.4.6/plugins/redmine_issues_tree# bundle exec rake redmine:plugins:migrate RAILS_ENV=production --trace
(in /data/redmine/redmine-3.4.6)
rake aborted!
NoMethodError: undefined method active_record' for #<Rails::Application::Configuration:0x000056542dcceb88> /var/lib/gems/2.5.0/gems/railties-6.0.3.3/lib/rails/railtie/configuration.rb:96:in method_missing'
/data/redmine/redmine-3.4.6/config/application.rb:20:in <class:Application>' /data/redmine/redmine-3.4.6/config/application.rb:8:in module:RedmineApp'
/data/redmine/redmine-3.4.6/config/application.rb:7:in <top (required)>' /data/redmine/redmine-3.4.6/Rakefile:5:in require'
/data/redmine/redmine-3.4.6/Rakefile:5:in <top (required)>' /usr/lib/ruby/vendor_ruby/rake/rake_module.rb:29:in load'
/usr/lib/ruby/vendor_ruby/rake/rake_module.rb:29:in load_rakefile' /usr/lib/ruby/vendor_ruby/rake/application.rb:703:in raw_load_rakefile'
/usr/lib/ruby/vendor_ruby/rake/application.rb:104:in block in load_rakefile' /usr/lib/ruby/vendor_ruby/rake/application.rb:186:in standard_exception_handling'
/usr/lib/ruby/vendor_ruby/rake/application.rb:103:in load_rakefile' /usr/lib/ruby/vendor_ruby/rake/application.rb:82:in block in run'
/usr/lib/ruby/vendor_ruby/rake/application.rb:186:in standard_exception_handling' /usr/lib/ruby/vendor_ruby/rake/application.rb:80:in run'
/usr/bin/rake:27:in `

'

@Tab10id
Copy link
Contributor

Tab10id commented Sep 15, 2020

Run migrations from redmine directory, not from plugin directory.

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

2 participants