lib/generators/bootup/templates/database.yml.erb in bootup-0.0.2 vs lib/generators/bootup/templates/database.yml.erb in bootup-0.0.3
- old
+ new
@@ -1,24 +1,26 @@
development:
adapter: postgresql
database: <%= app_name %>_development
- username: rahul
+ username: <%= @username unless @username.blank? %>
+ pasword: <%= @password unless @password.blank? %>
encoding: utf8
pool: 5
timeout: 5000
test:
adapter: postgresql
database: <%= app_name %>_test
- username: rahul
+ username: <%= @username unless @username.blank? %>
+ pasword: <%= @password unless @password.blank? %>
encoding: utf8
pool: 5
timeout: 5000
production:
adapter: postgresql
database: <%= app_name %>_production
- username: rahul
+ username:
encoding: utf8
pool: 5
timeout: 5000