Skip to content

Commit

Permalink
Fixes #36874 - Drop migrated_pulp3_href from content tables (#11192)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjha4 authored Nov 6, 2024
1 parent 80a7683 commit e83bdae
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
class RemovePulp3MigratedHrefsFromContentTables < ActiveRecord::Migration[6.1]
def change
content_models = [Katello::Rpm, Katello::ModuleStream, Katello::Erratum, Katello::PackageGroup, Katello::YumMetadataFile,
Katello::Srpm, Katello::FileUnit, Katello::DockerManifestList, Katello::DockerManifest, Katello::DockerTag]

content_models.each do |model|
remove_column model.table_name, :migrated_pulp3_href, :string
end
end
end

0 comments on commit e83bdae

Please sign in to comment.