aboutsummaryrefslogtreecommitdiffstats
path: root/db/migrate
diff options
context:
space:
mode:
authorXinhui2017-12-14 14:12:12 +0100
committerXinhui2017-12-14 14:12:12 +0100
commit00f3016a5908ec52b492d7465947ff61e322c0c2 (patch)
tree9e0720d62408e108082ad391aabce3d7a3014908 /db/migrate
parent75b22972935ae660209430255cebabb2e781542b (diff)
downloadchouette-core-00f3016a5908ec52b492d7465947ff61e322c0c2.tar.bz2
Enable unaccent extension
Refs #5305
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20171214130636_enable_unaccent_extension.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20171214130636_enable_unaccent_extension.rb b/db/migrate/20171214130636_enable_unaccent_extension.rb
new file mode 100644
index 000000000..f7411b1f4
--- /dev/null
+++ b/db/migrate/20171214130636_enable_unaccent_extension.rb
@@ -0,0 +1,9 @@
+class EnableUnaccentExtension < ActiveRecord::Migration
+ def up
+ execute 'CREATE EXTENSION IF NOT EXISTS unaccent SCHEMA shared_extensions;'
+ end
+
+ def down
+ execute 'DROP EXTENSION IF EXISTS unaccent SCHEMA shared_extensions;'
+ end
+end