scinote-web/db/migrate/20151103155048_add_btree_gist_extension.rb

11 lines
241 B
Ruby
Raw Normal View History

2016-02-12 23:52:43 +08:00
require File.expand_path('app/helpers/database_helper')
include DatabaseHelper
2017-06-30 16:23:28 +08:00
class AddBtreeGistExtension < ActiveRecord::Migration[4.2]
2016-02-12 23:52:43 +08:00
def up
if db_adapter_is? "PostgreSQL" then
enable_extension :btree_gist
2016-02-12 23:52:43 +08:00
end
end
end