demarches-normaliennes/db/migrate/20180108132507_enable_unaccent_postgresql_extension.rb

10 lines
212 B
Ruby
Raw Normal View History

2018-01-08 14:59:23 +01:00
class EnableUnaccentPostgresqlExtension < ActiveRecord::Migration[5.0]
def up
execute 'CREATE EXTENSION IF NOT EXISTS unaccent;'
2018-01-08 14:59:23 +01:00
end
def down
execute 'DROP EXTENSION IF EXISTS unaccent;'
2018-01-08 14:59:23 +01:00
end
end