Object of instance with "'''''''NULL'''''''" default value i

Hi all,

I have a model with not null columns, but when I create a new instance
of this model, i get a default value “’’’’’’’’’’‘NULL’’’’’’’’’’’’’’”
in each column with the NN constraint.

How can I remove it, because it is not very user friendly in my
views :slight_smile:

Best regards,

Stephane W.

On Jul 21, 8:09 pm, Stéphane Wirtel [email protected] wrote:

I have a model with not null columns, but when I create a new instance
of this model, i get a default value “‘’‘’‘’‘’‘’‘NULL’‘’‘’‘’‘’‘’‘’'”
in each column with the NN constraint.

Which version of Rails are you using? Are you using sqlite3? I
remember a bug with quoting when using sqlite3 that would continue
putting extra quotes around strings.

Dan M.
http://www.dcmanges.com