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

David Carlos gitlab at mg.gitlab.com
Thu Aug 24 18:17:16 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

If I call it `image`, the relation of the Form will be made with the Image model. It's that what we want?

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


More information about the Noosfero-dev mailing list