Skip to content

Commit 6fdb3e4

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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 != 'test@example.com')"}
146+
add :email, :string, check: %{name: "test_constraint", expr: "email != 'test@example.com'"}
147147
148148
### Handling foreign key constraints in changesets
149149

0 commit comments

Comments
 (0)