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-4.3.6 db/migrate/20150410180016_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
blacklight-spotlight-4.3.5 db/migrate/20150410180016_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
blacklight-spotlight-4.3.4 db/migrate/20150410180016_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
blacklight-spotlight-4.3.3 db/migrate/20150410180016_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
blacklight-spotlight-4.3.2 db/migrate/20150410180016_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
blacklight-spotlight-4.3.1 db/migrate/20150410180016_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
blacklight-spotlight-4.3.0 db/migrate/20150410180016_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
blacklight-spotlight-4.2.0 db/migrate/20150410180016_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
blacklight-spotlight-4.1.2 db/migrate/20150410180016_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
blacklight-spotlight-4.1.1 db/migrate/20150410180016_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
blacklight-spotlight-4.1.0 db/migrate/20150410180016_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
blacklight-spotlight-4.0.3 db/migrate/20150410180016_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
blacklight-spotlight-4.0.2 db/migrate/20150410180016_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
blacklight-spotlight-4.0.1 db/migrate/20150410180016_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
blacklight-spotlight-4.0.0 db/migrate/20150410180016_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
blacklight-spotlight-3.6.0.beta10 db/migrate/20150410180016_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
blacklight-spotlight-3.6.0.beta9 db/migrate/20150410180016_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
blacklight-spotlight-3.6.0.beta8 db/migrate/20150410180016_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
blacklight-spotlight-3.5.0.4 db/migrate/20150410180016_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
blacklight-spotlight-3.6.0.beta7 db/migrate/20150410180016_change_collation_for_tag_names.acts_as_taggable_on_engine.rb