[Nitro] RES: RES: updated_at and created_at
Antoniolo
antoniolo at gmail.com
Thu Mar 15 10:25:41 EDT 2007
The first time I used String in attr_accessor I expected to get at least
varchar(255) in the DB, but I got a Text.
I'd like to ask you if it's reasonable to replace to something like this:
attr_accessor :name, String #=> varchar(255)
attr_accessor :short_name, String(30), #=> varchar(30)
attr_accessor :description, Text #=> Text
I'm aware there's VarChar(x), but I prefer the first one. It's just an
esthetic issue after all and i'm not suggesting to replace it!. I'd like to
know why you've adopted String as Text... just wondering...
Ah!! I tried to use is Timestamped but the callback is not invoked,
consequently time fields aren't updated.
-----Mensagem original-----
De: nitro-general-bounces at rubyforge.org
[mailto:nitro-general-bounces at rubyforge.org] Em nome de George Moschovitis
Enviada em: Thursday, March 15, 2007 10:46 AM
Para: General discussion about Nitro
Assunto: Re: [Nitro] RES: updated_at and created_at
> How about the String/Text ?
Dunno what you mean, can you elaborate?
-g.
--
http://blog.gmosx.com
http://cull.gr
http://www.joy.gr
http://nitroproject.org
_______________________________________________
Nitro-general mailing list
Nitro-general at rubyforge.org
http://rubyforge.org/mailman/listinfo/nitro-general
More information about the Nitro-general
mailing list