Skip to content

The Rails Drop

find here about Ruby, Ruby On Rails, Linux etc…

The Rails Drop

Month: April 2015

How to rename a database in Mongodb 2.6

Use the following commands:
I can only find copy and drop commands for doing this. Please comment here if you find a single command to do this.

> db.copyDatabase('old_db_name', 'new_db_name');
> use old_db_name;
> db.dropDatabase();
Unknown's avatarAuthor AbhilashPosted on April 27, 2015July 1, 2016Categories UncategorizedLeave a comment on How to rename a database in Mongodb 2.6
April 2015
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
27282930  
« Mar   Aug »

Recent Posts

  • Rails Encrypted Credentials: The Git Diff Feature You May Have Been Using Without Knowing
  • Ractors and Ruby Box in Ruby 4: What Do They Mean for Rails?
  • Ruby Beyond CRuby: Why JRuby and TruffleRuby Exist? What Ruby 4.0 Really Changed
  • What Really Happens When Ruby Code Executes?
  • Ruby’s Mysterious Symbols: The Syntax Every Ruby Developer Should Truly Understand
  • Rails Database Transactions: A Senior Developer’s Guide to Atomicity, Rollbacks, Savepoints and Transaction-Safe Design
  • Ruby’s Triple-Dot Operator: Argument Forwarding from 2.7 to 4.0
  • OpenRouter AI: One API for Multiple AI Models
  • Integrate AI with Rails: Day 11 – RAG : Build Semantic Search
  • Integrate AI with Rails: Day 10 – RAG Part 2: embeddings
  • Integrate AI with Rails: Day 10 – RAG with PostgreSQL + pgvector – part 1
  • Integrate AI with Rails: Day 9 – implement OpenRouter model fallbacks
  • Integrate AI with Rails: Day 8 – Production Hardening of the AI Integration, add AI Observablility
  • Integrate AI with Rails: AI bootcamp for Developers – Day 7 – AI Response Streaming
  • Integrate AI with Rails: AI bootcamp for Developers – Day 6 – Build the Rails Chat UI | Prompt Builder | Chat Memory
  • Integrate AI with Rails: AI bootcamp for Developers – Day 5 –Use OpenRouter API, Create AI Chat service
  • Integrate AI with Rails: AI bootcamp for Developers – Day 4 -Practical Course – Part 3
  • Integrate AI with Rails: AI bootcamp for Developers – Day 4 -Practical Course – Part 2
  • Integrate AI with Rails: AI bootcamp for Developers – Day 4 -Practical Course – Part 1
  • Learn AI with Rails: AI Bootcamp for Developers – Building AI Applications in Ruby on Rails – Day 4
  • Learn AI with Rails: AI Bootcamp for Developers – RAG, Embeddings & Vector Databases – Day 3
  • Learn AI with Rails: AI Bootcamp for Developers – Prompt Engineering, AI APIs & Tool Calling – Day 2
  • Learn AI with Rails: AI Topics You Must Know as a Senior Developer – Day 1
  • Understading Rails 8.1 Action Controller Live SSE
  • Understanding Enums: Why They Exist, How They Work and How Rails Implements Them
  • Fixing PostgreSQL Startup Issues on macOS (Homebrew): A Real-World Troubleshooting Guide
  • GCP Cloud SQL Disaster Recovery: A Practical Guide for Developers
  • Engineer’s Guide to Cursor AI: Mastering the AI-First IDE in 2026
  • Mastering RSpec Test Doubles in Rails 7+ (Ruby 3+)
  • Sidekiq & Redis Optimization: Reducing Overhead and Scaling Worker Jobs
  • Fixing Let’s Encrypt SSL Certificate Renewal on a Server: A Step-by-Step Guide
  • Understanding Core Computer Language Concepts: Design Patterns, Polymorphism and Object Relationships
  • How to Integrate Datadog and PagerDuty into an Enterprise Rails Application – Part 2
  • How to Integrate Datadog and PagerDuty into an Enterprise Rails Application – Part 1
  • Browser Storage Mechanisms Explained (with Vue.js Examples)

Archives

  • August 2026
  • July 2026
  • June 2026
  • May 2026
  • April 2026
  • March 2026
  • January 2026
  • December 2025
  • November 2025
  • October 2025
  • September 2025
  • August 2025
  • July 2025
  • June 2025
  • May 2025
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • August 2024
  • April 2024
  • March 2024
  • February 2024
  • October 2023
  • July 2023
  • June 2023
  • June 2022
  • May 2022
  • March 2022
  • December 2021
  • November 2021
  • July 2021
  • March 2021
  • October 2020
  • April 2020
  • March 2020
  • September 2019
  • July 2019
  • June 2019
  • May 2018
  • April 2018
  • September 2017
  • August 2017
  • June 2017
  • April 2017
  • June 2016
  • May 2016
  • March 2016
  • February 2016
  • September 2015
  • August 2015
  • April 2015
  • March 2015
  • September 2014
  • October 2013
  • September 2013
  • July 2013
  • April 2013
  • January 2013
  • December 2012
  • November 2012
  • August 2012
  • July 2012
  • April 2012
  • February 2012
  • January 2012
  • November 2011
  • October 2011
  • August 2011
  • June 2011
  • March 2011
  • December 2010
  • November 2010
  • October 2010
  • September 2010
  • August 2010
  • July 2010
The Rails Drop Start a Store on WordPress.com.
  • Subscribe Subscribed
    • The Rails Drop
    • Join 41 other subscribers
    • Already have a WordPress.com account? Log in now.
    • The Rails Drop
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar