noosfero | Add a upload file field, on the form of the CustomForm plugin. (!1302)
David Carlos
gitlab at mg.gitlab.com
Mon Aug 28 19:35:17 BRT 2017
David Carlos commented on a discussion on plugins/custom_forms/db/migrate/20170815205438_add_upload_file_to_custom_forms.rb:
> +class AddUploadFileToCustomForms < ActiveRecord::Migration
> + def change
> + add_reference :custom_forms_plugin_forms , :article, foreign_key: true
I did this, but not on the migration. The form model have this line:
` belongs_to :article, :class_name => 'UploadedFile', dependent: :destroy`
---
Reply to this email directly or view it on GitLab: https://gitlab.com/noosfero/noosfero/merge_requests/1302#note_38715055
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/20170828/ab8630f8/attachment.html>
More information about the Noosfero-dev
mailing list