Sha256: 44caf353b1f33d91465de6d92db2d9a428e5fbde0be73e9c006a60e6adb5b15c

Contents?: true

Size: 519 Bytes

Versions: 54

Compression:

Stored size: 519 Bytes

Contents

class AddGeneratedForToContentViews < ActiveRecord::Migration[6.0]
  def change
    add_column :katello_content_views, :generated_for, :integer, :default => 0, :null => false
    ::Katello::ContentView.reset_column_information
    ::Katello::ContentView.
      where(label: ::Katello::ContentView::IMPORT_LIBRARY).
      update(generated_for: :library_import)

    ::Katello::ContentView.
      where('label like ?', "#{::Katello::ContentView::EXPORT_LIBRARY}%").
      update(generated_for: :library_export)
  end
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
katello-4.7.1 db/migrate/20220209203251_add_generated_for_to_content_views.rb
katello-4.6.2.1 db/migrate/20220209203251_add_generated_for_to_content_views.rb
katello-4.6.2 db/migrate/20220209203251_add_generated_for_to_content_views.rb
katello-4.7.0 db/migrate/20220209203251_add_generated_for_to_content_views.rb
katello-4.6.1 db/migrate/20220209203251_add_generated_for_to_content_views.rb
katello-4.7.0.rc2 db/migrate/20220209203251_add_generated_for_to_content_views.rb
katello-4.7.0.rc1 db/migrate/20220209203251_add_generated_for_to_content_views.rb
katello-4.5.1 db/migrate/20220209203251_add_generated_for_to_content_views.rb
katello-4.6.0 db/migrate/20220209203251_add_generated_for_to_content_views.rb
katello-4.6.0.rc2 db/migrate/20220209203251_add_generated_for_to_content_views.rb
katello-4.6.0.rc1 db/migrate/20220209203251_add_generated_for_to_content_views.rb
katello-4.5.0 db/migrate/20220209203251_add_generated_for_to_content_views.rb
katello-4.5.0.rc2 db/migrate/20220209203251_add_generated_for_to_content_views.rb
katello-4.5.0.rc1 db/migrate/20220209203251_add_generated_for_to_content_views.rb