debian-mirror-gitlab/db/migrate/20220624081524_add_ci_runner_versions_table.rb
2022-08-13 15:12:31 +05:30

16 lines
412 B
Ruby

# frozen_string_literal: true
class AddCiRunnerVersionsTable < Gitlab::Database::Migration[2.0]
enable_lock_retries!
def up
create_table :ci_runner_versions, id: false do |t|
t.text :version, primary_key: true, index: true, null: false, limit: 2048
t.integer :status, null: true, limit: 2, index: true
end
end
def down
drop_table :ci_runner_versions, if_exists: true
end
end