Sha256: fa5b8add4f48135013baf76152ea2f9b7b576f04c57995dcc598aef3a2fa0a35

Contents?: true

Size: 282 Bytes

Versions: 47

Compression:

Stored size: 282 Bytes

Contents

class AddContentViewVersionCounts < ActiveRecord::Migration[5.2]
  def change
    add_column :katello_content_view_versions, :content_counts, :text
    Katello::ContentViewVersion.reset_column_information
    Katello::ContentViewVersion.all.each(&:update_content_counts!)
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
katello-3.18.5 db/migrate/20191204214919_add_content_view_version_counts.rb
katello-3.18.4 db/migrate/20191204214919_add_content_view_version_counts.rb
katello-3.18.3.1 db/migrate/20191204214919_add_content_view_version_counts.rb
katello-3.18.3 db/migrate/20191204214919_add_content_view_version_counts.rb
katello-3.18.2.1 db/migrate/20191204214919_add_content_view_version_counts.rb
katello-3.18.2 db/migrate/20191204214919_add_content_view_version_counts.rb
katello-3.17.3 db/migrate/20191204214919_add_content_view_version_counts.rb
katello-3.18.1.1 db/migrate/20191204214919_add_content_view_version_counts.rb
katello-3.17.2 db/migrate/20191204214919_add_content_view_version_counts.rb
katello-3.18.1 db/migrate/20191204214919_add_content_view_version_counts.rb
katello-3.18.0 db/migrate/20191204214919_add_content_view_version_counts.rb
katello-3.17.1 db/migrate/20191204214919_add_content_view_version_counts.rb
katello-3.16.2 db/migrate/20191204214919_add_content_view_version_counts.rb
katello-3.18.0.rc2.1 db/migrate/20191204214919_add_content_view_version_counts.rb
katello-3.18.0.rc2 db/migrate/20191204214919_add_content_view_version_counts.rb
katello-3.17.0 db/migrate/20191204214919_add_content_view_version_counts.rb
katello-3.18.0.rc1 db/migrate/20191204214919_add_content_view_version_counts.rb
katello-3.17.0.rc2.2 db/migrate/20191204214919_add_content_view_version_counts.rb
katello-3.17.0.rc2.1 db/migrate/20191204214919_add_content_view_version_counts.rb
katello-3.16.1.2 db/migrate/20191204214919_add_content_view_version_counts.rb