phuongnd08/multi_spork — Issue #2: Unknown Database 'client_test1'
Author: trystant
Created: 2012-02-22 15:41:43+00:00
State: open

Hi,

I'm trying to use multi_spork on a Rails 3.1 application (I made a fork in https://github.com/trystant/multi_spork and changed db:test:load_schema to db:test:load), but when I run the rake task, this is the output:

[mnyon@nyon ~/Documents/workspace/client20 (git::master) ] be rake db:multi_spork:clone --trace
DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead. Notice their behavior are slightly different, so refer to class_attribute document\
ation first. (called from at /Users/mnyon/Documents/workspace/client20/config/application.rb:7)
DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead. Notice their behavior are slightly different, so refer to class_attribute document\
ation first. (called from at /Users/mnyon/Documents/workspace/client20/config/application.rb:7)
DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead. Notice their behavior are slightly different, so refer to class_attribute document\
ation first. (called from at /Users/mnyon/Documents/workspace/client20/config/application.rb:7)
DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead. Notice their behavior are slightly different, so refer to class_attribute document\
ation first. (called from at /Users/mnyon/Documents/workspace/client20/config/application.rb:7)
** Invoke db:multi_spork:clone (first_time)
** Invoke db:load_config (first_time)
** Invoke rails_env (first_time)
** Execute rails_env
** Execute db:load_config
** Execute db:multi_spork:clone
** Invoke db:schema:dump (first_time)
** Invoke environment (first_time)
** Execute environment
** Invoke db:load_config
** Execute db:schema:dump
** Invoke db:test:load (first_time)
** Invoke db:test:purge (first_time)
** Invoke environment
** Execute db:test:purge
rake aborted!
Unknown database 'client_test1'

It seems that the databases aren't being created. Is there something I'm missing from either the installation process or the rake task? Thanks.