Skip to content

Commit

Permalink
1001609-notice-fk - another dependent destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasmckay committed Sep 19, 2013
1 parent 4ff0598 commit 3b794e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/notice.rb
Expand Up @@ -13,7 +13,7 @@
class Notice < ActiveRecord::Base
include Glue::ElasticSearch::Notice if Katello.config.use_elasticsearch

has_many :user_notices
has_many :user_notices, :dependent => :destroy
has_many :users, :through => :user_notices
belongs_to :organization

Expand Down

0 comments on commit 3b794e7

Please sign in to comment.