lib/jets/commands/templates/skeleton/config/database.yml.tt in jets-1.0.6 vs lib/jets/commands/templates/skeleton/config/database.yml.tt in jets-1.0.7

- old
+ new

@@ -1,10 +1,10 @@ default: &default adapter: <%= @options[:database] == 'mysql' ? 'mysql2' : 'postgresql' %> encoding: utf8 pool: <%%= ENV["DB_POOL"] || 5 %> - database: <%%= ENV['DB_NAME'] || '<%= @project_name %>_dev' %> + database: <%%= ENV['DB_NAME'] || '<%= @project_name %>_development' %> <% if @options[:database] == 'mysql' -%> username: <%%= ENV['DB_USER'] || 'root' %> <% else -%> username: <%%= ENV['DB_USER'] || ENV['USER'] %> <% end -%> @@ -12,15 +12,15 @@ host: <%%= ENV["DB_HOST"] %> url: <%%= ENV['DATABASE_URL'] %> # takes higher precedence than other settings development: <<: *default - database: <%%= ENV['DB_NAME'] || '<%= @project_name %>_dev' %> + database: <%%= ENV['DB_NAME'] || '<%= @project_name %>_development' %> test: <<: *default database: <%= @project_name %>_test production: <<: *default - database: <%= @project_name %>_prod + database: <%= @project_name %>_production url: <%%= ENV['DATABASE_URL'] %>