diff --git a/db/migrate/20240813141845_rename_centos_stream_mirror_to_centos.rb b/db/migrate/20240813141845_rename_centos_stream_mirror_to_centos.rb new file mode 100644 index 00000000000..2a12de64c76 --- /dev/null +++ b/db/migrate/20240813141845_rename_centos_stream_mirror_to_centos.rb @@ -0,0 +1,9 @@ +class RenameCentosStreamMirrorToCentos < ActiveRecord::Migration[6.1] + def up + Medium.unscoped.where(name: "CentOS Stream 9 mirror").update_all(name: "CentOS mirror") + end + + def down + Medium.unscoped.where(name: "CentOS mirror").update_all(name: "CentOS Stream 9 mirror") + end +end