Skip to content

Instantly share code, notes, and snippets.

@Darep
Created November 3, 2017 11:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Darep/cfb88b75f3572c9c31b391d0b15ab5c7 to your computer and use it in GitHub Desktop.
Save Darep/cfb88b75f3572c9c31b391d0b15ab5c7 to your computer and use it in GitHub Desktop.
utf8mb4 for CircleCI in Rails
database:
override:
- mv config/database.ci.yml config/database.yml
- RAILS_ENV="test" RACK_ENV="test" bundle exec rake db:create db:structure:load ts:configure ts:index ts:start --trace
# config/database.ci.yml
test:
adapter: mysql2
database: circle_ruby_test
username: ubuntu
host: localhost
encoding: utf8mb4
collation: utf8mb4_unicode_ci
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment