Skip to content

Commit 6fdb3e4

Browse files
authored
Fix typo in check constraint example (#95)
1 parent d4689ab commit 6fdb3e4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/ecto/adapters/sqlite3.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ defmodule Ecto.Adapters.SQLite3 do
143143
144144
Thus, adding a check constraint for a new column is as simple as:
145145
146-
add :email, :string, check: %{name: "test_constraint", expr: "email != '[email protected]')"}
146+
add :email, :string, check: %{name: "test_constraint", expr: "email != '[email protected]'"}
147147
148148
### Handling foreign key constraints in changesets
149149

0 commit comments

Comments
 (0)