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

The SQLite3 adapter now implements the supports_deferrable_constraints? contract #49376

Merged
merged 1 commit into from
Oct 29, 2023

Commits on Oct 28, 2023

  1. The SQLite3 adapter now implements the `supports_deferrable_constrain…

    …ts?` contract
    
    Implementing the full `supports_deferrable_constraints?` contract allows foreign keys to be deferred by adding the `:deferrable` key to the `foreign_key` options in the `add_reference` and `add_foreign_key` methods.
    
    ```ruby
    add_reference :person, :alias, foreign_key: { deferrable: :deferred }
    add_reference :alias, :person, foreign_key: { deferrable: :deferred }
    ```
    fractaledmind committed Oct 28, 2023
    Configuration menu
    Copy the full SHA
    ea17941 View commit details
    Browse the repository at this point in the history