Sha256: 30fc2e3286977967257980b7b6f7bf89607eefb25cc9d47041ab3e8f0ba80d14

Contents?: true

Size: 792 Bytes

Versions: 7

Compression:

Stored size: 792 Bytes

Contents

class CreateKatelloSubscriptionFacetPools < ActiveRecord::Migration
  def change
    create_table :katello_subscription_facet_pools do |t|
      t.column :subscription_facet_id, :integer, required: true
      t.column :pool_id, :integer, required: true
    end
    add_index "katello_subscription_facet_pools", [:pool_id, :subscription_facet_id], :unique => true,
              :name => "index_katello_sub_facet_pools_on_sfid_poolid"

    add_foreign_key "katello_subscription_facet_pools", "katello_pools",
                    :name => "katello_sub_facet_pools_pool_id_fk", :column => "pool_id"
    add_foreign_key "katello_subscription_facet_pools", "katello_subscription_facets",
                   :name => "katello_sub_facet_pools_sf_id_fk", :column => "subscription_facet_id"
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
katello-3.5.2 db/migrate/20170718142148_create_katello_subscription_facet_pools.rb
katello-3.5.1.1 db/migrate/20170718142148_create_katello_subscription_facet_pools.rb
katello-3.5.1 db/migrate/20170718142148_create_katello_subscription_facet_pools.rb
katello-3.5.0.1 db/migrate/20170718142148_create_katello_subscription_facet_pools.rb
katello-3.5.0 db/migrate/20170718142148_create_katello_subscription_facet_pools.rb
katello-3.5.0.rc2 db/migrate/20170718142148_create_katello_subscription_facet_pools.rb
katello-3.5.0.rc1 db/migrate/20170718142148_create_katello_subscription_facet_pools.rb