• charlieablett's avatar
    Skip validation for concurrent foreign key · fb43f374
    charlieablett authored
    Add `validate: false` option for adding concurrent foreign key.
    This allows the table lock to be held for a minimal amount of time
    while still performing the checks that `add_concurrent_foreign_key`
    performs for adding a foreign key to a table that may contain invalid
    data, allowing us to put off any validation to a different time.
    fb43f374
migration_helpers_examples.rb 863 Bytes