#1329 ✓resolved
Postmodern

db:test:prepare should not call db:create.

Reported by Postmodern | June 17th, 2010 @ 08:54 PM

The standard Rails db:test:prepare does not call db:create, but instead calls db:abort_if_pending_migrations to make sure the Database is up to date. By having dm-rails db:test:prepare call db:create everytime is rather annoying, as it creates both the testing and development repositories; when we only care about the testing database.

Rails:

$ rake db:test:prepare --trace
(in /home/hal/rails_ar)
** Invoke db:test:prepare (first_time)
** Invoke db:abort_if_pending_migrations (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:abort_if_pending_migrations
** Execute db:test:prepare
** Invoke db:test:load (first_time)
** Invoke db:test:purge (first_time)
** Invoke environment 
** Execute db:test:purge
** Execute db:test:load
** Invoke db:schema:load (first_time)
** Invoke environment 
** Execute db:schema:load

dm-rails:

** Invoke db:test:prepare (first_time)
** Invoke db:setup (first_time)
** Invoke db:create (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:create

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

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

Tags

Pages