diff options
author | Seamus Abshere <seamus@abshere.net> | 2012-07-23 17:33:00 -0500 |
---|---|---|
committer | Seamus Abshere <seamus@abshere.net> | 2012-07-23 17:33:00 -0500 |
commit | 5ca11fefce6d83f5db399aa4412f1f1a0d42b2e6 (patch) | |
tree | 907d2fc4f907d93b9420316fdaf7450e3e311427 /activerecord/test/cases/pooled_connections_test.rb | |
parent | 14a1df14095a761dbf091668185343d9209bc216 (diff) | |
download | rails-5ca11fefce6d83f5db399aa4412f1f1a0d42b2e6.tar.gz rails-5ca11fefce6d83f5db399aa4412f1f1a0d42b2e6.tar.bz2 rails-5ca11fefce6d83f5db399aa4412f1f1a0d42b2e6.zip |
Make sure :environment task is executed before db:schema:load or db:structure:load
Otherwise, if schema_format = :sql, you will see:
$ rake db:setup --trace
** Invoke db:setup (first_time)
** Invoke db:schema:load_if_ruby (first_time)
** Invoke db:create (first_time)
** Invoke db:load_config (first_time)
** Invoke rails_env (first_time)
** Execute rails_env
** Execute db:load_config
** Execute db:create
db_example_development already exists
db_example_test already exists
** Execute db:schema:load_if_ruby #<-------- :environment hasn't been executed yet
** Invoke db:schema:load (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:schema:load
~/db_example/db/schema.rb doesn't exist yet. Run `rake db:migrate` to create it then try again.
Diffstat (limited to 'activerecord/test/cases/pooled_connections_test.rb')
0 files changed, 0 insertions, 0 deletions