Sha256: be2e5c1bd9fe25701938f40abc21a26664280c931f39f405fd2d74e5fb2dd948
Contents?: true
Size: 614 Bytes
Versions: 37
Compression:
Stored size: 614 Bytes
Contents
class DropMarketingEngineeringProducts < ActiveRecord::Migration class Katello::MarketingProduct < ActiveRecord::Base 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
37 entries across 37 versions & 1 rubygems