forked from Katello/katello
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
771957 - let repositories deal with content deletion
Only marketing products must deal with deleting product - content assignment in CP. For engineering products there are repositories created, which delete the content when they are removed. This change prevents trying to delete the content twice while deleting product. The other posibility would be to prevent deleting of conent in repository in case product is being deleted and let product handle it all, but there would be necessary a mechanism for finding out if the repo orchestration happens during product orchestration or not - when not repo should handle content deletion itself.
- Loading branch information
Showing
6 changed files
with
50 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
src/db/migrate/20120203090936_update_product_type_add_default.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
class UpdateProductTypeAddDefault < ActiveRecord::Migration | ||
def self.up | ||
change_column :products, :type, :string, :default => "Product", :null => false | ||
end | ||
|
||
def self.down | ||
change_column :products, :type, :string, :default => nil, :null => true | ||
end | ||
end |