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.7.1 db/migrate/20190802112101_add_applicable_debs.rb
katello-4.6.2.1 db/migrate/20190802112101_add_applicable_debs.rb
katello-4.6.2 db/migrate/20190802112101_add_applicable_debs.rb
katello-4.7.0 db/migrate/20190802112101_add_applicable_debs.rb
katello-4.6.1 db/migrate/20190802112101_add_applicable_debs.rb
katello-4.7.0.rc2 db/migrate/20190802112101_add_applicable_debs.rb
katello-4.7.0.rc1 db/migrate/20190802112101_add_applicable_debs.rb
katello-4.4.2.2 db/migrate/20190802112101_add_applicable_debs.rb
katello-4.4.2.1 db/migrate/20190802112101_add_applicable_debs.rb
katello-4.4.2 db/migrate/20190802112101_add_applicable_debs.rb
katello-4.5.1 db/migrate/20190802112101_add_applicable_debs.rb
katello-4.6.0 db/migrate/20190802112101_add_applicable_debs.rb
katello-4.6.0.rc2 db/migrate/20190802112101_add_applicable_debs.rb
katello-4.6.0.rc1 db/migrate/20190802112101_add_applicable_debs.rb
katello-4.5.0 db/migrate/20190802112101_add_applicable_debs.rb
katello-4.5.0.rc2 db/migrate/20190802112101_add_applicable_debs.rb
katello-4.4.1 db/migrate/20190802112101_add_applicable_debs.rb
katello-4.5.0.rc1 db/migrate/20190802112101_add_applicable_debs.rb
katello-4.4.0.2 db/migrate/20190802112101_add_applicable_debs.rb
katello-4.4.0.1 db/migrate/20190802112101_add_applicable_debs.rb