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.

Chris Elledge's latest activity

Thursday, October 30 2008
1305 has_one dependent nullify deletes associated object on change was created in Ruby on Rails
  • Chris Elledge
    Chris Elledge created the ticket at 9:36 PM

    Using Rails 2.1.1

    class User < ActiveRecord::Base
      has_one :device, :dependent => :nullify
    end
    
    u = User.find(1)
    u.device = Device.find(1)
    u.device = Device....