[Nitro] [oree.ch] Patchset #1
zimba.tm at gmail.com
Mon Feb 13 03:43:07 EST 2006
On Sunday 12 February 2006 23:51, Michael Neumann wrote:
> 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.
How about additional keywords that are dependent of the database, like mysql's
auto_incerment or UNSIGNED ?
> Nitro-general mailing list
> Nitro-general at rubyforge.org
weblog : http://zimba.oree.ch
More information about the Nitro-general