Meu database.yml
arquivo para ambiente de desenvolvimento usando Postgresql.
defaults: &defaults
adapter: postgresql
encoding: utf8
collation: en_US.utf8
ctype: en_US.utf8
template: template0
<% %w(development test production).each do |environment| %>
<%= environment %>:
<<: *defaults
database: <%= "#{Rails.application.class.parent_name.downcase}_#{environment}" %>
<% end %>