diff options
Diffstat (limited to 'db/migrate/20200515152649_enable_btree_gist_extension.rb')
-rw-r--r-- | db/migrate/20200515152649_enable_btree_gist_extension.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/20200515152649_enable_btree_gist_extension.rb b/db/migrate/20200515152649_enable_btree_gist_extension.rb new file mode 100644 index 00000000000..686b685fb5d --- /dev/null +++ b/db/migrate/20200515152649_enable_btree_gist_extension.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +class EnableBtreeGistExtension < ActiveRecord::Migration[6.0] + DOWNTIME = false + + def up + execute 'CREATE EXTENSION IF NOT EXISTS btree_gist' + end + + def down + execute 'DROP EXTENSION IF EXISTS btree_gist' + end +end |