noosfero | Add a upload file field, on the form of the CustomForm plugin. (!1302)

Rodrigo Souto gitlab at mg.gitlab.com
Mon Aug 28 17:31:02 BRT 2017


Rodrigo Souto 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

You can specify the related model with `class_name: 'UploadedFile'`.

---
Reply to this email directly or view it on GitLab: https://gitlab.com/noosfero/noosfero/merge_requests/1302#note_38707303
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/dba107a2/attachment.html>


More information about the Noosfero-dev mailing list