Sha256: 3b0b446bf4072e94aa37145ee4ec439f32aaafbca6c76737d09fcea04771acc8
Contents?: true
Size: 613 Bytes
Versions: 7
Compression:
Stored size: 613 Bytes
Contents
class DropMarketingEngineeringProducts < ActiveRecord::Migration class Katello::MarketingProduct < ApplicationRecord self.table_name = "katello_products" end def up drop_table :katello_marketing_engineering_products Katello::Product.where(:type => "Katello::MarketingProduct").delete_all remove_column :katello_products, :type end def down create_table "katello_marketing_engineering_products", :force => true do |t| t.integer "marketing_product_id" t.integer "engineering_product_id" end add_column :katello_products, :type, :string, :limit => 255 end end
Version data entries
7 entries across 7 versions & 1 rubygems