Sha256: 70b9df8d584079492447e883f46a8569e6ae5f019536feea5cdedf6375a0b574

Contents?: true

Size: 367 Bytes

Versions: 10

Compression:

Stored size: 367 Bytes

Contents

# This migration is added to circumvent issue #623 and have special characters
# work properly
class ChangeCollationForSpreeTagNames < ActiveRecord::Migration[4.2]
  def up
    if defined?(ActsAsTaggableOn) && ActsAsTaggableOn::Utils.using_mysql?
      execute("ALTER TABLE spree_tags MODIFY name varchar(255) CHARACTER SET utf8 COLLATE utf8_bin;")
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
spree_core-3.7.14.1 db/migrate/20160511072249_change_collation_for_spree_tag_names.rb
spree_core-3.7.14 db/migrate/20160511072249_change_collation_for_spree_tag_names.rb
spree_core-3.7.13 db/migrate/20160511072249_change_collation_for_spree_tag_names.rb
spree_core-3.7.12 db/migrate/20160511072249_change_collation_for_spree_tag_names.rb
spree_core-3.7.11 db/migrate/20160511072249_change_collation_for_spree_tag_names.rb
spree_core-3.7.10 db/migrate/20160511072249_change_collation_for_spree_tag_names.rb
spree_core-3.7.9 db/migrate/20160511072249_change_collation_for_spree_tag_names.rb
spree_core-3.7.8 db/migrate/20160511072249_change_collation_for_spree_tag_names.rb
spree_core-3.7.7 db/migrate/20160511072249_change_collation_for_spree_tag_names.rb
spree_core-3.7.6 db/migrate/20160511072249_change_collation_for_spree_tag_names.rb