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.

John Barker's latest activity

Monday, April 25 2011
6648 PostgreSQL add column behaves differently to other adaptors (SQlite, MySQL) w... was updated in Ruby on Rails
  • John Barker
    John Barker commented at 5:11 PM

    Just realised this was also fixed in master, so simply back-ported the fix and made the diff as per the guide, applied it with 'git am ...' and it works, passes...

Saturday, April 23 2011
6648 PostgreSQL add column behaves differently to other adaptors (SQlite, MySQL) w... was updated in Ruby on Rails
  • John Barker
    John Barker commented at 11:16 AM

    Rails actually sends separate commands to the database when you do an add_column, not a single alter table statement. Your example SQL alter table statement is ...

Wednesday, March 30 2011
6648 PostgreSQL add column behaves differently to other adaptors (SQlite, MySQL) w... was created in Ruby on Rails
  • John Barker
    John Barker created the ticket at 8:06 AM

    When adding a column to a table with a migration, like so:

      add_column :receivables, :arrears, :boolean, :default => false
    

    and using SQLite or MySQL, the col...

Thursday, November 27 2008
1449 Routing doesn't work with url that omits 0s such as 127.1, 10.1, 192.168.1 was updated in Ruby on Rails
  • John Barker
    John Barker commented at 10:33 PM

    Adding the private method to ActionController::AbstractRequest

    
        # Expands an ip address specified in short format, e.g: 127.1 becomes 127.0.0.1
        def ex...
Sunday, November 23 2008
1449 Routing doesn't work with url that omits 0s such as 127.1, 10.1, 192.168.1 was created in Ruby on Rails
  • John Barker
    John Barker created the ticket at 3:40 PM

    Using a URL such as '10.1' (10.0.0.1) which is a correctly formatted IP address, the router seems to fail with the error:

    No route matches "http:/" with {:metho...