diff options
| author | Xinhui | 2017-12-14 14:12:12 +0100 |
|---|---|---|
| committer | Xinhui | 2017-12-14 14:12:12 +0100 |
| commit | 00f3016a5908ec52b492d7465947ff61e322c0c2 (patch) | |
| tree | 9e0720d62408e108082ad391aabce3d7a3014908 /db | |
| parent | 75b22972935ae660209430255cebabb2e781542b (diff) | |
| download | chouette-core-00f3016a5908ec52b492d7465947ff61e322c0c2.tar.bz2 | |
Enable unaccent extension
Refs #5305
Diffstat (limited to 'db')
| -rw-r--r-- | db/migrate/20171214130636_enable_unaccent_extension.rb | 9 | ||||
| -rw-r--r-- | db/schema.rb | 3 |
2 files changed, 11 insertions, 1 deletions
diff --git a/db/migrate/20171214130636_enable_unaccent_extension.rb b/db/migrate/20171214130636_enable_unaccent_extension.rb new file mode 100644 index 000000000..f7411b1f4 --- /dev/null +++ b/db/migrate/20171214130636_enable_unaccent_extension.rb @@ -0,0 +1,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 diff --git a/db/schema.rb b/db/schema.rb index 4a04dac26..f2642f8fc 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,12 +11,13 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20171130180144) do +ActiveRecord::Schema.define(version: 20171214130636) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" enable_extension "postgis" enable_extension "hstore" + enable_extension "unaccent" create_table "access_links", id: :bigserial, force: :cascade do |t| t.integer "access_point_id", limit: 8 |
