Sha256: 21477ee4667ba01a3802da8621f3f502c19af08cff7882c870717dc5e9b3da92

Contents?: true

Size: 646 Bytes

Versions: 193

Compression:

Stored size: 646 Bytes

Contents

class CreateKatelloProductContent < ActiveRecord::Migration[4.2]
  def change
    create_table :katello_product_contents do |t|
      t.integer :product_id, :required => true
      t.integer :content_id, :required => true
      t.boolean :enabled

      t.index [:product_id, :content_id], unique: true
    end
    add_foreign_key "katello_product_contents", "katello_products",
                    :name => "katello_product_content_product_id_fk", :column => "product_id"

    add_foreign_key "katello_product_contents", "katello_contents",
                    :name => "katello_product_content_content_id_fk", :column => "content_id"
  end
end

Version data entries

193 entries across 193 versions & 1 rubygems

Version Path
katello-4.7.1 db/migrate/20171112174358_create_katello_product_content.rb
katello-4.6.2.1 db/migrate/20171112174358_create_katello_product_content.rb
katello-4.6.2 db/migrate/20171112174358_create_katello_product_content.rb
katello-4.7.0 db/migrate/20171112174358_create_katello_product_content.rb
katello-4.6.1 db/migrate/20171112174358_create_katello_product_content.rb
katello-4.7.0.rc2 db/migrate/20171112174358_create_katello_product_content.rb
katello-4.7.0.rc1 db/migrate/20171112174358_create_katello_product_content.rb
katello-4.4.2.2 db/migrate/20171112174358_create_katello_product_content.rb
katello-4.4.2.1 db/migrate/20171112174358_create_katello_product_content.rb
katello-4.4.2 db/migrate/20171112174358_create_katello_product_content.rb
katello-4.5.1 db/migrate/20171112174358_create_katello_product_content.rb
katello-4.6.0 db/migrate/20171112174358_create_katello_product_content.rb
katello-4.6.0.rc2 db/migrate/20171112174358_create_katello_product_content.rb
katello-4.6.0.rc1 db/migrate/20171112174358_create_katello_product_content.rb
katello-4.5.0 db/migrate/20171112174358_create_katello_product_content.rb
katello-4.5.0.rc2 db/migrate/20171112174358_create_katello_product_content.rb
katello-4.4.1 db/migrate/20171112174358_create_katello_product_content.rb
katello-4.5.0.rc1 db/migrate/20171112174358_create_katello_product_content.rb
katello-4.4.0.2 db/migrate/20171112174358_create_katello_product_content.rb
katello-4.4.0.1 db/migrate/20171112174358_create_katello_product_content.rb