debian-mirror-gitlab/db/migrate/20230109093043_create_namespaces_storage_limit_exclusions.rb
2023-04-23 21:23:45 +05:30

21 lines
535 B
Ruby

# frozen_string_literal: true
class CreateNamespacesStorageLimitExclusions < Gitlab::Database::Migration[2.1]
enable_lock_retries!
def up
create_table :namespaces_storage_limit_exclusions do |t|
t.references :namespace,
foreign_key: { on_delete: :cascade },
index: true,
null: false
t.text :reason, null: false, limit: 255
t.timestamps_with_timezone null: false
end
end
def down
drop_table :namespaces_storage_limit_exclusions
end
end