mattconnolly / rails-backup-migrate

A gem providing a rake task for backing up and migrating databases and files between rails instances.
Other
26 stars 16 forks source link

require 'rake' line missing from rails-backup-migrate.rake #17

Open Riomhchlaraitheoir opened 5 years ago

Riomhchlaraitheoir commented 5 years ago

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