Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README Clarification for has_one #247

Closed
wants to merge 1 commit into from

Commits on Dec 11, 2014

  1. README Clarification for has_one

    A small change to save others some troubleshooting time. For reasons too complicated to explain here I need to allow users to delete and create a record with a 'has_one' association. 
    
    The destruction of the associated object is expected as per has_one#association= documentation (excerpt below).
     
    Assigns the associate object, extracts the primary key, sets it as the foreign key, and saves the associate object. To avoid database inconsistencies, permanently deletes an existing associated object when assigning a new one, even if the new one isn't saved to database.
    richseviora committed Dec 11, 2014
    Configuration menu
    Copy the full SHA
    2885840 View commit details
    Browse the repository at this point in the history