tasks/databases/mysql.rake in composite_primary_keys-11.3.1 vs tasks/databases/mysql.rake in composite_primary_keys-12.0.0.rc1
- old
+ new
@@ -8,10 +8,10 @@
spec = CompositePrimaryKeys::ConnectionSpec['mysql']
ActiveRecord::Base.clear_all_connections!
new_spec = spec.dup
new_spec.delete('database')
connection = ActiveRecord::Base.establish_connection(new_spec)
- ActiveRecord::Base.connection.create_database(spec['database'])
+ ActiveRecord::Base.connection.create_database(spec['database'], charset: spec['charset'] || 'utf8mb4')
ActiveRecord::Base.clear_all_connections!
end
desc 'Build the MySQL test database'
task :build_database => [:create_database] do