title: rails4 - Psych::BadAlias: Unknown alias: test
body: <p>trying to deploy my project using Capistrano cap deploy:migrate , I get an error in my database.yml on the test alias ( which is just running fine on local server)</p>
  
  <pre><code>development:
     database: db_dev
     adapter: mysql2
     username: xxxxxx
     password: xxxxxx
     host: localhost
     encoding: utf8
  
  test: &amp;test
     database: db_test
     adapter: mysql2
     username: xxxxxx
     password: xxxxxx
     host: localhost
     encoding: utf8
  
  production:
     database: db_prod
     adapter: mysql2
     username: xxxxxxxx
     password: xxxxxxx
     host: localhost
     encoding: utf8
  
  cucumber:
     &lt;&lt;: *test
  </code></pre>
  
  <p>the console log is :</p>
  
  <pre><code>           rake aborted!
     Psych::BadAlias: Unknown alias: test
     /railties-4.0.3/lib/rails/application/configuration.rb:106:in `database_configuration'
     /activerecord-4.0.3/lib/active_record/railtie.rb:175:in `block (2 levels) in &lt;class:Railtie&gt;'
     /activesupport-4.0.3/lib/active_support/lazy_load_hooks.rb:38:in `instance_eval'
     /activesupport-4.0.3/lib/active_support/lazy_load_hooks.rb:38:in `execute_hook'
     /activesupport-4.0.3/lib/active_support/lazy_load_hooks.rb:28:in `block in on_load'
     /activesupport-4.0.3/lib/active_support/lazy_load_hooks.rb:27:in `each'
     /activesupport-4.0.3/lib/active_support/lazy_load_hooks.rb:27:in `on_load'
     /activerecord-4.0.3/lib/active_record/railtie.rb:174:in `block in &lt;class:Railtie&gt;'
     /railties-4.0.3/lib/rails/initializable.rb:30:in `instance_exec'
     /railties-4.0.3/lib/rails/initializable.rb:30:in `run'
     /railties-4.0.3/lib/rails/initializable.rb:55:in `block in run_initializers'
     /railties-4.0.3/lib/rails/initializable.rb:54:in `run_initializers'
     /railties-4.0.3/lib/rails/application.rb:215:in `initialize!'
     /railties-4.0.3/lib/rails/railtie/configurable.rb:30:in `method_missing'
     /home/kadoudal/rails/swim-tech.eu/site/swimtech/releases/20140326140458/config/environment.rb:6:in `&lt;top (required)&gt;'
     /activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require'
     /activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `block in require'
     /activesupport-4.0.3/lib/active_support/dependencies.rb:214:in `load_dependency'
     /activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require'
     /railties-4.0.3/lib/rails/application.rb:189:in `require_environment!'
     /railties-4.0.3/lib/rails/application.rb:250:in `block in run_tasks_blocks'
     Tasks: TOP =&gt; db:migrate =&gt; environment
  </code></pre>