diff options
Diffstat (limited to 'db/migrate/20230208103640_rename_runner_machine_xid.rb')
-rw-r--r-- | db/migrate/20230208103640_rename_runner_machine_xid.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/20230208103640_rename_runner_machine_xid.rb b/db/migrate/20230208103640_rename_runner_machine_xid.rb new file mode 100644 index 00000000000..c9c9ffd324f --- /dev/null +++ b/db/migrate/20230208103640_rename_runner_machine_xid.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +class RenameRunnerMachineXid < Gitlab::Database::Migration[2.1] + disable_ddl_transaction! + + def up + rename_column_concurrently :ci_runner_machines, :machine_xid, :system_xid + end + + def down + undo_rename_column_concurrently :ci_runner_machines, :machine_xid, :system_xid + end +end |