Sha256: b9acd13c94dd6f5acc2c4e7463f4d463cf09b28b5ecd79a20e17e9fef09e14c3

Contents?: true

Size: 396 Bytes

Versions: 113

Compression:

Stored size: 396 Bytes

Contents

# 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[4.2]
  def up
    if ActsAsTaggableOn::Utils.using_mysql?
      execute("ALTER TABLE tags MODIFY name varchar(255) CHARACTER SET utf8 COLLATE utf8_bin;")
    end
  end
end

Version data entries

113 entries across 113 versions & 3 rubygems

Version Path
blacklight-spotlight-3.0.0.alpha.4 db/migrate/20150410180016_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
blacklight-spotlight-3.0.0.alpha.3 db/migrate/20150410180016_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
blacklight-spotlight-3.0.0.alpha.2 db/migrate/20150410180016_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
blacklight-spotlight-3.0.0.alpha.1 db/migrate/20150410180016_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
blacklight-spotlight-2.13.0 db/migrate/20150410180016_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
blacklight-spotlight-2.12.1 db/migrate/20150410180016_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
blacklight-spotlight-2.12.0 db/migrate/20150410180016_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
blacklight-spotlight-2.11.0 db/migrate/20150410180016_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
blacklight-spotlight-2.10.0 db/migrate/20150410180016_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
blacklight-spotlight-2.9.0 db/migrate/20150410180016_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
integral-1.3.0 db/migrate/20160516084706_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
integral-1.2.0 db/migrate/20160516084706_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
blacklight-spotlight-2.8.0 db/migrate/20150410180016_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
blacklight-spotlight-2.7.2 db/migrate/20150410180016_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
blacklight-spotlight-2.7.1 db/migrate/20150410180016_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
blacklight-spotlight-2.7.0 db/migrate/20150410180016_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
blacklight-spotlight-2.6.1.1 db/migrate/20150410180016_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
blacklight-spotlight-2.6.1 db/migrate/20150410180016_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
blacklight-spotlight-2.6.0 db/migrate/20150410180016_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
blacklight-spotlight-2.5.2 db/migrate/20150410180016_change_collation_for_tag_names.acts_as_taggable_on_engine.rb