travis-ci/travis-ci — comment on commit d57b3e9b83ee8f265e0720e4b9fcda9b79b6c468
File:  line 0
By michaelklishin:

I would connect on start the way we did. You never know when lazy connections will be initialized with autoload & ActiveSupport::Dependencies magic and we need to guarantee that we do it after Unicorn forks.

As for the initializer (that only matters if you need amqp connection in tests and Rails console) this will work just as well.