2016-12-17 16:59:11 +01:00
|
|
|
# This migration comes from acts_as_taggable_on_engine (originally 5)
|
|
|
|
# This migration is added to circumvent issue #623 and have special characters
|
|
|
|
# work properly
|
|
|
|
class ChangeCollationForTagNames < ActiveRecord::Migration
|
|
|
|
def up
|
|
|
|
return unless ActsAsTaggableOn::Utils.using_mysql?
|
2018-09-15 15:05:21 +02:00
|
|
|
|
2016-12-17 16:59:11 +01:00
|
|
|
execute 'ALTER TABLE tags MODIFY name varchar(255)
|
|
|
|
CHARACTER SET utf8 COLLATE utf8_bin;'
|
|
|
|
end
|
|
|
|
end
|