summaryrefslogtreecommitdiff
path: root/db/migrate/20200515152649_enable_btree_gist_extension.rb
blob: 686b685fb5d2cb9929264534e5f6b69cd8242f16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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