diff --git a/src/migrations/add_foreign_key.rs b/src/migrations/add_foreign_key.rs index a5ab5a0..542077c 100644 --- a/src/migrations/add_foreign_key.rs +++ b/src/migrations/add_foreign_key.rs @@ -48,7 +48,7 @@ impl Action for AddForeignKey { ALTER TABLE "{table}" ADD CONSTRAINT {constraint_name} FOREIGN KEY ({columns}) - REFERENCES {referenced_table} ({referenced_columns}) + REFERENCES "{referenced_table}" ({referenced_columns}) NOT VALID "#, table = table.real_name,