app/models/phcscriptcdn/script/listing.rb in phcscriptcdn-50.0.0 vs app/models/phcscriptcdn/script/listing.rb in phcscriptcdn-51.0.0
- old
+ new
@@ -6,10 +6,10 @@
# Add Paper Trail
has_paper_trail :class_name => 'Phcscriptcdn::ListingVersions'
# Relationships
- has_many :urls, class_name: 'Phcscriptcdn::Script::Url'
+ has_many :urls, class_name: 'Phcscriptcdn::Script::Url', :dependent => :destroy
belongs_to :author, class_name: 'Phcscriptcdn::Script::Author'
belongs_to :licence, class_name: 'Phcscriptcdn::Script::Licence'
# Validation for Form Fields
validates :script_tittle,