demarches-normaliennes/db/migrate/20180108132507_enable_unaccent_postgresql_extension.rb
2018-01-09 15:20:04 +01:00

9 lines
212 B
Ruby

class EnableUnaccentPostgresqlExtension < ActiveRecord::Migration[5.0]
def up
execute 'CREATE EXTENSION IF NOT EXISTS unaccent;'
end
def down
execute 'DROP EXTENSION IF EXISTS unaccent;'
end
end