Sha256: 4974c0761bb8520b5239b9e5ac73a0ed8898755f5a8b5cbd3cc845fc37fa4b27

Contents?: true

Size: 850 Bytes

Versions: 70

Compression:

Stored size: 850 Bytes

Contents

class AddApplicableDebs < ActiveRecord::Migration[5.2]
  def change
    create_table :katello_content_facet_applicable_debs do |t|
      t.references :content_facet, null: false, index: { name: :katello_cf_applicable_debs_cf_idx }
      t.references :deb, :null => false, :index => { name: :katello_cf_applicable_debs_deb_idx }
    end

    add_index :katello_content_facet_applicable_debs, [:deb_id, :content_facet_id],
              name: 'index_k_content_facet_deb_rid_cfid', unique: true
    add_index :katello_content_facet_applicable_debs, :content_facet_id,
              name: 'index_k_content_facet_applicable_debs_on_content_facet_id'

    add_column :katello_content_facets, :applicable_deb_count, :integer, null: false, default: 0
    add_column :katello_content_facets, :upgradable_deb_count, :integer, null: false, default: 0
  end
end

Version data entries

70 entries across 70 versions & 1 rubygems

Version Path
katello-4.15.0.rc2 db/migrate/20190802112101_add_applicable_debs.rb
katello-4.15.0.rc1 db/migrate/20190802112101_add_applicable_debs.rb
katello-4.14.1 db/migrate/20190802112101_add_applicable_debs.rb
katello-4.14.0 db/migrate/20190802112101_add_applicable_debs.rb
katello-4.14.0.rc3 db/migrate/20190802112101_add_applicable_debs.rb
katello-4.14.0.rc2 db/migrate/20190802112101_add_applicable_debs.rb
katello-4.14.0.rc1.1 db/migrate/20190802112101_add_applicable_debs.rb
katello-4.14.0.rc1 db/migrate/20190802112101_add_applicable_debs.rb
katello-4.13.1 db/migrate/20190802112101_add_applicable_debs.rb
katello-4.13.0 db/migrate/20190802112101_add_applicable_debs.rb
katello-4.12.1 db/migrate/20190802112101_add_applicable_debs.rb
katello-4.13.0.rc1 db/migrate/20190802112101_add_applicable_debs.rb
katello-4.12.0 db/migrate/20190802112101_add_applicable_debs.rb
katello-4.12.0.rc3 db/migrate/20190802112101_add_applicable_debs.rb
katello-4.12.0.rc2 db/migrate/20190802112101_add_applicable_debs.rb
katello-4.12.0.rc1 db/migrate/20190802112101_add_applicable_debs.rb
katello-4.11.1 db/migrate/20190802112101_add_applicable_debs.rb
katello-4.11.0 db/migrate/20190802112101_add_applicable_debs.rb
katello-4.11.0.rc2 db/migrate/20190802112101_add_applicable_debs.rb
katello-4.11.0.rc1 db/migrate/20190802112101_add_applicable_debs.rb