This project is archived and is in readonly mode.

#3351 ✓stale
Vojto

Connecting with :test config in rake db:test:purge

Reported by Vojto | October 8th, 2009 @ 12:51 PM

In db:test:purge task, we're automatically connecting to the database specified in test section of database.yml

Everything else in Rails is calling Rails::Initializer#initialize_database - which let's user easily change default configuration used.

E.g, I rewrote this methods, because I'm using this naming convention: {environment}app, {environment}data, etc.

db:test:purge should also call Rails::Initializer#initialize_database assuming RAILS_ENV is set to test.

Comments and changes to this ticket

  • Rohit Arondekar

    Rohit Arondekar October 6th, 2010 @ 06:42 AM

    • State changed from “new” to “stale”
    • Importance changed from “” to “”

    Marking ticket as stale. If this is still an issue please leave a comment with suggested changes, creating a patch with tests, rebasing an existing patch or just confirming the issue on a latest release or master/branches.

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Pages