demarches-normaliennes/db/migrate/20180108132507_enable_unaccent_postgresql_extension.rb
2018-01-09 10:29:54 +01:00

9 lines
188 B
Ruby

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