Commit e8d7591

mo khan <mo@mokhan.ca>
2015-11-15 20:02:38
add adapter type to database.yml
1 parent a6768e2
Changed files (2)
recipes/rails.rb
@@ -24,6 +24,9 @@ end
 file "#{shared_path}/config/database.yml" do
   content <<-YAML
 production:
+  adapter: postgresql
+  encoding: unicode
+  pool: 5
   url: <%= ENV['DATABASE_URL'] %>
 YAML
 end
templates/database.yml.erb
@@ -1,8 +0,0 @@
-<%= @rails_env %>:
-  adapter: postgresql
-  encoding: unicode
-  pool: 5
-  database: <%= @database %>
-  username: <%= @username %>
-  password: <%= @password %>
-  host: <%= @host %>