aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorZakaria BOUZIANE2015-04-03 14:03:58 +0200
committerZakaria BOUZIANE2015-04-03 14:03:58 +0200
commit5b8d33f04f8679f1d1c3bf19d84760ca8c7a8269 (patch)
treec5599aab9d2c083fb196fe2a0e931ca16b513014 /db
parentfa7e745459aefd64086869882fcca73f948b46fa (diff)
downloadchouette-core-5b8d33f04f8679f1d1c3bf19d84760ca8c7a8269.tar.bz2
IEV index of imports
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20150319082515_change_collation_for_tag_names.acts_as_taggable_on_engine.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/db/migrate/20150319082515_change_collation_for_tag_names.acts_as_taggable_on_engine.rb b/db/migrate/20150319082515_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
new file mode 100644
index 000000000..bfb06bc7c
--- /dev/null
+++ b/db/migrate/20150319082515_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
@@ -0,0 +1,10 @@
+# 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
+ def up
+ if ActsAsTaggableOn::Utils.using_mysql?
+ execute("ALTER TABLE tags MODIFY name varchar(255) CHARACTER SET utf8 COLLATE utf8_bin;")
+ end
+ end
+end