debian-mirror-gitlab/db/migrate/20200623170000_create_static_partitions_schema.rb
2020-08-09 17:44:08 +05:30

19 lines
446 B
Ruby

# frozen_string_literal: true
class CreateStaticPartitionsSchema < ActiveRecord::Migration[6.0]
include Gitlab::Database::SchemaHelpers
DOWNTIME = false
def up
execute 'CREATE SCHEMA gitlab_partitions_static'
create_comment(:schema, :gitlab_partitions_static, <<~EOS.strip)
Schema to hold static partitions, e.g. for hash partitioning
EOS
end
def down
execute 'DROP SCHEMA gitlab_partitions_static'
end
end