This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class UseUtf8mb4Characterset < ActiveRecord::Migration | |
def up | |
# The migration has been done following: | |
# - http://mathiasbynens.be/notes/mysql-utf8mb4#utf8-to-utf8mb4 | |
# - http://dev.mysql.com/doc/refman/5.5/en/charset-unicode-upgrading.html | |
database = Rails.configuration.database_configuration[Rails.env]["database"] | |
# Stop checking foreign keys | |
execute "SET foreign_key_checks = 0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Update, upgrade and install development tools: | |
apt-get update | |
apt-get -y upgrade | |
apt-get -y install build-essential git-core curl libssl-dev \ | |
libreadline5 libreadline5-dev \ | |
zlib1g zlib1g-dev \ | |
libmysqlclient-dev \ | |
libcurl4-openssl-dev \ | |
libxslt-dev libxml2-dev |