After installing this gem the rails generator would throw an error:
~/.rvm/gems/ruby-2.6.3/gems/rails-backup-migrate-0.0.12/lib/tasks/rails-backup-migrate.rake:14:in '<main>': undefined method 'namespace' for main:Object (NoMethodError)
I fixed this by adding the line require 'rake' to the file ~/.rvm/gems/ruby-2.6.3/gems/rails-backup-migrate-0.0.12/lib/tasks/rails-backup-migrate.rake before all of the other require statements
This should probably be fixed in the gem itself
for reference, I'm using:
Rails: 5.2.3
Ruby: 2.6.3
Bundler: 1.17.2
After installing this gem the rails generator would throw an error:
~/.rvm/gems/ruby-2.6.3/gems/rails-backup-migrate-0.0.12/lib/tasks/rails-backup-migrate.rake:14:in '<main>': undefined method 'namespace' for main:Object (NoMethodError)
I fixed this by adding the linerequire 'rake'
to the file~/.rvm/gems/ruby-2.6.3/gems/rails-backup-migrate-0.0.12/lib/tasks/rails-backup-migrate.rake
before all of the otherrequire
statements This should probably be fixed in the gem itself for reference, I'm using: Rails: 5.2.3 Ruby: 2.6.3 Bundler: 1.17.2