Stéphane Wirtel
2007-Jul-22 00:09 UTC
object of instance with "''''''''''''''NULL''''''''''''''" default value in not null column
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 :) Best regards, Stephane Wirtel --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Dan Manges
2007-Jul-22 18:33 UTC
Re: object of instance with "''''''''''''''NULL''''''''''''''" default value in not null column
On Jul 21, 8:09 pm, Stéphane Wirtel <stephane.wir...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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. http://weblog.rubyonrails.org/2007/1/29/using-sqlite3-with-rails Dan Manges http://www.dcmanges.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---