noosfero | Create custom identifier to custom_forms plugin (!1303)

Rodrigo Souto gitlab at mg.gitlab.com
Tue Sep 5 18:00:37 BRT 2017


Rodrigo Souto started a new discussion on plugins/custom_forms/db/migrate/20170904020305_fill_forms_identifier.rb:

> +class FillFormsIdentifier < ActiveRecord::Migration
> +  def self.up
> +    CustomFormsPlugin::Form.where(['identifier = ?', '']).each do |form|

The value you should match with here should be `nil` instead of empty string.

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


More information about the Noosfero-dev mailing list