[Git][noosfero/noosfero][master] 4 commits: Deleting associated uploaded_file when profile is deleted

Rodrigo Souto gitlab at mg.gitlab.com
Wed Dec 5 12:48:34 BRST 2018


Rodrigo Souto pushed to branch master at Noosfero / noosfero


Commits:
0af23d59 by Alax Alves at 2018-11-16T23:29:47Z
Deleting associated uploaded_file when profile is deleted

- - - - -
1a497cd0 by Alax Alves at 2018-11-20T14:26:47Z
Merge branch 'master' of https://gitlab.com/noosfero/noosfero into issue-373

- - - - -
d50a58c1 by Alax Alves at 2018-12-04T12:29:42Z
Merge branch 'master' of https://gitlab.com/noosfero/noosfero into issue-373

- - - - -
fabb5274 by Rodrigo Souto at 2018-12-05T14:48:27Z
Merge branch 'issue-373' into 'master'

Deleting associated uploaded_file when profile is deleted

See merge request noosfero/noosfero!1644
- - - - -


1 changed file:

- app/models/profile.rb


Changes:

=====================================
app/models/profile.rb
=====================================
@@ -370,7 +370,7 @@ class Profile < ApplicationRecord
   has_many :articles, :dependent => :destroy
   belongs_to :home_page, :class_name => Article.name, :foreign_key => 'home_page_id'
 
-  has_many :files, :class_name => 'UploadedFile'
+  has_many :files, class_name: 'UploadedFile', dependent: :destroy
 
   extend ActsAsHavingImage::ClassMethods
   acts_as_having_image



View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/e09cafe12cdc10cb111ff89d24e0b0c5e5b019b8...fabb5274f6c86c700d96a0052f093f9219194d2f

-- 
View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/e09cafe12cdc10cb111ff89d24e0b0c5e5b019b8...fabb5274f6c86c700d96a0052f093f9219194d2f
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20181205/c51aa26d/attachment-0001.html>


More information about the Noosfero-dev mailing list