namespace :db do
  namespace :copy do
    namespace :production do
      desc 'Copy production database'
      task to_local: ['db:drop'] do
        MongodbClone::MongodbReplication.new.dump.restore
      end
    end
  end
end

Create a rake task to copy the production database and restore locally.
Create a rake task to copy the production database and restore locally.