Sha256: 2711a2d3d452e0a782d4186514b8832612535c528b834fd7e9ab1c4fc2d9a728

Contents?: true

Size: 399 Bytes

Versions: 8

Compression:

Stored size: 399 Bytes

Contents

# This migration comes from spree (originally 20160511072249)
# This migration is added to circumvent issue #623 and have special characters
# work properly
class ChangeCollationForSpreeTagNames < ActiveRecord::Migration[4.2]
  def up
    if 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

8 entries across 8 versions & 2 rubygems

Version Path
spree_billing_sisow-0.9.2 spec/dummy/db/migrate/20190729091876_change_collation_for_spree_tag_names.spree.rb
spree_billing_sisow-0.9.1 spec/dummy/db/migrate/20190729091876_change_collation_for_spree_tag_names.spree.rb
spree_purchase_order-3.6.0 spec/dummy/db/migrate/20180516182064_change_collation_for_spree_tag_names.spree.rb
spree_purchase_order-3.5.0 spec/dummy/db/migrate/20180516182064_change_collation_for_spree_tag_names.spree.rb
spree_purchase_order-3.5.0.rc1 spec/dummy/db/migrate/20180516182064_change_collation_for_spree_tag_names.spree.rb
spree_purchase_order-3.4.0 spec/dummy/db/migrate/20180516182064_change_collation_for_spree_tag_names.spree.rb
spree_purchase_order-3.3.0 spec/dummy/db/migrate/20180516182064_change_collation_for_spree_tag_names.spree.rb
spree_purchase_order-3.2.0 spec/dummy/db/migrate/20180516182064_change_collation_for_spree_tag_names.spree.rb