[Nitro] [oree.ch] Patchset #1

Michael Neumann mneumann at ntecs.de
Sun Feb 12 17:51:39 EST 2006


Am 12.02.2006 um 15:45 schrieb zimba.tm:

> On Friday 10 February 2006 20:35, Michael Neumann wrote:
>> Am 08.02.2006 um 21:53 schrieb zimba.tm:
>>> Hello devs,
>>>
>>> I have put some changes in my own nitro repo at http://oree.ch/
>>> nitro. Here are
>>
>> I've appended a minor patch which makes SQL generation a bit simpler
>> (add NULL constraints as
>> well as VARCHAR(xx)).
>>
>>    property :name, String, :limit => 25, :nullable => false
>>    # => name VARCHAR(25) NOT NULL
>>
>> Regards,
>>
>>    Michael
>
> Hi manveru,
>
> wouldn't :length be more precise than :limit ? Also is it still  
> possible to
> define it's own type definition, like CHAR(25) ?

Hehe, :limit is what Rails migrations use :). We could  
define :sql_type or
just :type, so you could write:

   property :name, String, :length => 25, :sql_type =>  
"CHAR", :nullable => true

It would be very simple to implement.

Regards,

   Michael



More information about the Nitro-general mailing list