Sha256: 53349105867078f1a1580e07efabe1dd7e62244af5873a919146d1ce5265291d

Contents?: true

Size: 530 Bytes

Versions: 7

Compression:

Stored size: 530 Bytes

Contents

# This migration is added to circumvent issue #623 and have special characters
# work properly
if ActiveRecord.gem_version >= Gem::Version.new('5.0')
  class ChangeCollationForTagNames < ActiveRecord::Migration[4.2]; end
else
  class ChangeCollationForTagNames < ActiveRecord::Migration; end
end
ChangeCollationForTagNames.class_eval do
  def up
    if ActsAsTaggableOn::Utils.using_mysql?
      execute("ALTER TABLE #{ActsAsTaggableOn.tags_table} MODIFY name varchar(255) CHARACTER SET utf8 COLLATE utf8_bin;")
    end
  end
end

Version data entries

7 entries across 7 versions & 3 rubygems

Version Path
acts-as-taggable-on-fix-8.1.1 db/migrate/5_change_collation_for_tag_names.rb
acts-as-taggable-on-fix-8.1.0 db/migrate/5_change_collation_for_tag_names.rb
acts-as-taggable-on-8.1.0 db/migrate/5_change_collation_for_tag_names.rb
acts-as-taggable-on-8.0.0 db/migrate/5_change_collation_for_tag_names.rb
acts-as-taggable-on-7.0.0 db/migrate/5_change_collation_for_tag_names.rb
acts-as-taggable-on-6.5.0 db/migrate/5_change_collation_for_tag_names.rb
sb-acts-as-taggable-on-6.5.0 db/migrate/5_change_collation_for_tag_names.rb