Skip to content

Commit 76233ef

Browse files
leifgscouten
authored andcommitted
Fix README example schema (#207)
Since Ecto 2.0 the model module doesn't exist anymore. Instead Ecto.Schema is used
1 parent 42a4752 commit 76233ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ defmodule Repo do
8282
end
8383

8484
defmodule Weather do
85-
use Ecto.Model
85+
use Ecto.Schema
8686

8787
schema "weather" do
8888
field :city # Defaults to type :string

0 commit comments

Comments
 (0)