diff options
Diffstat (limited to 'db/migrate/20200515152649_enable_btree_gist_extension.rb')
-rw-r--r-- | db/migrate/20200515152649_enable_btree_gist_extension.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/db/migrate/20200515152649_enable_btree_gist_extension.rb b/db/migrate/20200515152649_enable_btree_gist_extension.rb index 686b685fb5d..bd81c921a87 100644 --- a/db/migrate/20200515152649_enable_btree_gist_extension.rb +++ b/db/migrate/20200515152649_enable_btree_gist_extension.rb @@ -1,13 +1,15 @@ # frozen_string_literal: true class EnableBtreeGistExtension < ActiveRecord::Migration[6.0] + include Gitlab::Database::MigrationHelpers + DOWNTIME = false def up - execute 'CREATE EXTENSION IF NOT EXISTS btree_gist' + create_extension :btree_gist end def down - execute 'DROP EXTENSION IF EXISTS btree_gist' + drop_extension :btree_gist end end |