Skip to content

Commit

Permalink
Add DB Migration
Browse files Browse the repository at this point in the history
  • Loading branch information
chris1984 authored Aug 14, 2024
1 parent f4becf2 commit a0f3206
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a0f3206

Please sign in to comment.