From 1f272f530681d83b3ec8500656a493afe601115d Mon Sep 17 00:00:00 2001 From: Dennis Schubert Date: Mon, 7 Aug 2017 15:09:48 +0200 Subject: [PATCH] Do not touch the schema_migrations table in migrations ... this breaks the Rails 5 upgrade, and it's actually no longer needed. New installations will have the right size anyway, and even if some older installations miss the migration by not updating for 2 years, it still doesn't matter since there is no risk that we will ever have emojis in our migration filenames. --- db/migrate/20150106050733_set_mysql_to_unicode_mb4.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/db/migrate/20150106050733_set_mysql_to_unicode_mb4.rb b/db/migrate/20150106050733_set_mysql_to_unicode_mb4.rb index 37dd9373e..832742889 100644 --- a/db/migrate/20150106050733_set_mysql_to_unicode_mb4.rb +++ b/db/migrate/20150106050733_set_mysql_to_unicode_mb4.rb @@ -86,9 +86,6 @@ class SetMysqlToUnicodeMb4 < ActiveRecord::Migration remove_index 'rails_admin_histories', :name => 'index_rails_admin_histories' add_index 'rails_admin_histories', ["item", "table", "month", "year"], :name => 'index_rails_admin_histories', length: {"table"=>188}, :using => :btree - remove_index 'schema_migrations', :name => 'unique_schema_migrations' - add_index 'schema_migrations', ["version"], :name => 'unique_schema_migrations', length: {"version"=>191}, :using => :btree - remove_index 'services', :name => 'index_services_on_type_and_uid' add_index 'services', ["type", "uid"], :name => 'index_services_on_type_and_uid', length: {"type"=>64, "uid"=>127}, :using => :btree