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