Sha256: e10c60379c2664e4f34873e6ab3f65c88a68209111f47e9a2b15493981398b87

Contents?: true

Size: 452 Bytes

Versions: 6

Compression:

Stored size: 452 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
  # rubocop:disable LineLength
  def up
    if ActsAsTaggableOn::Utils.using_mysql?
      execute("ALTER TABLE tags MODIFY name varchar(255) CHARACTER SET utf8 COLLATE utf8_bin;")
    end
  end
  # rubocop:enable LineLength
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
smalruby-editor-0.4.1-x86-mingw32 db/migrate/20150607034017_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
smalruby-editor-0.4.2-x86-mingw32 db/migrate/20150607034017_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
smalruby-editor-0.4.2 db/migrate/20150607034017_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
smalruby-editor-0.4.1 db/migrate/20150607034017_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
smalruby-editor-0.4.0-x86-mingw32 db/migrate/20150607034017_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
smalruby-editor-0.4.0 db/migrate/20150607034017_change_collation_for_tag_names.acts_as_taggable_on_engine.rb