Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Nick's latest activity

Friday, January 14 2011
6157 ActiveRecord scope class method requires a database connection was updated in Ruby on Rails
  • Nick
    Nick commented at 10:56 AM

    I've just come across this issue in another project where we manually require AR + all the models, then establish the connection some time afterwards.

    My workar...

Friday, May 07 2010
3554 Decimal columns with a scale of 0 are broken using ruby schemas was updated in Ruby on Rails
  • Nick
    Nick commented at 2:31 PM

    That does indeed fix the issue - excellent stuff! :)

    /Nick

Thursday, January 07 2010
2909 Polymorphic many to many relationships... was updated in Ruby on Rails
  • Nick
    Nick commented at 5:40 PM

    +1 on this - I've come across an instance in one of my applications (stock control) where this would be really useful.

    I'm going to try hacking at ActiveRecord ...

Wednesday, December 09 2009
3554 Decimal columns with a scale of 0 are broken using ruby schemas was updated in Ruby on Rails
  • Nick
    Nick commented at 5:09 PM

    Current monkey-patch. This gets almost everything right (although I wouldn't want to see it inside activerecord!) with one exception: the schema_dumper sets the...

  • Nick
    Nick commented at 4:48 PM

    Having played with this some more, I've got a better idea of the conceptual nature of the problem.

    A column's simplified_type seems to be there to specify the R...

  • Nick
    Nick created the ticket at 12:47 PM

    I'm using columns with an sql_type (MySQL) of DECIMAL(40,0) to store very large numbers (128-bit - IPv6 addresses, if you're curious).

    The column definition in ...