debian-mirror-gitlab/db/migrate/20200623121135_create_dynamic_partitions_schema.rb
2020-08-09 17:41:57 +05:30

19 lines
491 B
Ruby

# frozen_string_literal: true
class CreateDynamicPartitionsSchema < ActiveRecord::Migration[6.0]
include Gitlab::Database::SchemaHelpers
DOWNTIME = false
def up
execute 'CREATE SCHEMA gitlab_partitions_dynamic'
create_comment(:schema, :gitlab_partitions_dynamic, <<~EOS.strip)
Schema to hold partitions managed dynamically from the application, e.g. for time space partitioning.
EOS
end
def down
execute 'DROP SCHEMA gitlab_partitions_dynamic'
end
end