Sha256: 5d71cc52c1bf0dc0de2806c8a4d9451d9848f7dd956c10e7d423ef8821400562

Contents?: true

Size: 965 Bytes

Versions: 189

Compression:

Stored size: 965 Bytes

Contents

class SubFacetAddInstalledProducts < ActiveRecord::Migration[5.1]
  def change
    create_table :katello_installed_products do |t|
      t.string :name
      t.string :cp_product_id
      t.string :arch
      t.string :version
    end

    create_table :katello_subscription_facet_installed_products do |t|
      t.references :installed_product, :index => {:name => :katello_sub_facet_installed_products_ipid}
      t.references :subscription_facet, :index => {:name => :katello_sub_facet_installed_products_sfid}
    end

    add_foreign_key "katello_subscription_facet_installed_products", "katello_subscription_facets",
                        :name => "katello_sub_facet_installed_product_facet_id", :column => "subscription_facet_id"
    add_foreign_key "katello_subscription_facet_installed_products", "katello_installed_products",
                        :name => "katello_sub_facet_installed_product_product_id", :column => "installed_product_id"
  end
end

Version data entries

189 entries across 189 versions & 1 rubygems

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