lib/jets/commands/templates/skeleton/config/database.yml.tt in jets-2.0.6 vs lib/jets/commands/templates/skeleton/config/database.yml.tt in jets-2.1.0
- old
+ new
@@ -1,10 +1,11 @@
default: &default
adapter: <%= @database == 'mysql' ? 'mysql2' : 'postgresql' %>
- encoding: utf8
+ encoding: utf8mb4
pool: <%%= ENV["DB_POOL"] || 5 %>
database: <%%= ENV['DB_NAME'] || '<%= @project_name %>_development' %>
<% if @database == 'mysql' -%>
+ encoding: utf8mb4
username: <%%= ENV['DB_USER'] || 'root' %>
<% else -%>
username: <%%= ENV['DB_USER'] || ENV['USER'] %>
<% end -%>
password: <%%= ENV['DB_PASS'] %>