We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Can we have the validate foreign key validation in the same migration for addition
like
class AddForeignKeyOnUsers < ActiveRecord::Migration[5.2] def change add_foreign_key :users, :orders, validate: false validate_foreign_key :users, :orders end end
do these should be in separate migrations so that they happen on a separate transaction
The text was updated successfully, but these errors were encountered:
They should be in separate migrations so they happen in separate transactions.
Sorry, something went wrong.
Is this for existing fields? I don't see it will lock the table if the field is new
No branches or pull requests
Can we have the validate foreign key validation in the same migration for addition
like
do these should be in separate migrations so that they happen on a separate transaction
The text was updated successfully, but these errors were encountered: