aboutsummaryrefslogtreecommitdiffstats
path: root/db/migrate/20171214130636_enable_unaccent_extension.rb
blob: f7411b1f4f18002b0e0975d9c2cde7edbbc8b8db (plain)
1
2
3
4
5
6
7
8
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