2015-09-11 14:41:01 +05:30
|
|
|
# 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
|
2019-02-15 15:39:39 +05:30
|
|
|
class ChangeCollationForTagNames < ActiveRecord::Migration[4.2]
|
2015-09-11 14:41:01 +05:30
|
|
|
def up
|
|
|
|
if ActsAsTaggableOn::Utils.using_mysql?
|
|
|
|
execute("ALTER TABLE tags MODIFY name varchar(255) CHARACTER SET utf8 COLLATE utf8_bin;")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|