Skip to content

Commit 87fdd4e

Browse files
committed
SQLite3::Database#foreign_keys isn't always available
Fixes #476, closes #477
1 parent e1a5937 commit 87fdd4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mail_catcher/mail.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def db
3636
FOREIGN KEY (message_id) REFERENCES message (id) ON DELETE CASCADE
3737
)
3838
SQL
39-
db.foreign_keys = true
39+
db.execute("PRAGMA foreign_keys = ON")
4040
end
4141
end
4242
end

0 commit comments

Comments
 (0)