Sha256: 292bd20776f25c6bec98bfef3dfc1000a4e5dcc654a7a59707bffa6254582bbb

Contents?: true

Size: 252 Bytes

Versions: 8

Compression:

Stored size: 252 Bytes

Contents

class AddProductIdToSccProduct < ActiveRecord::Migration
  def change
    add_column :scc_products, :product_id, :integer, index: true, null: true
    add_foreign_key :scc_products, :katello_products, column: :product_id, on_delete: :nullify
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
foreman_scc_manager-1.3.0 db/migrate/20170303131704_add_product_id_to_scc_product.rb
foreman_scc_manager-1.2.0 db/migrate/20170303131704_add_product_id_to_scc_product.rb
foreman_scc_manager-1.1.3 db/migrate/20170303131704_add_product_id_to_scc_product.rb
foreman_scc_manager-1.1.2 db/migrate/20170303131704_add_product_id_to_scc_product.rb
foreman_scc_manager-1.1.1 db/migrate/20170303131704_add_product_id_to_scc_product.rb
foreman_scc_manager-1.1.0 db/migrate/20170303131704_add_product_id_to_scc_product.rb
foreman_scc_manager-1.0.1 db/migrate/20170303131704_add_product_id_to_scc_product.rb
foreman_scc_manager-1.0.0 db/migrate/20170303131704_add_product_id_to_scc_product.rb