Created
March 22, 2017 18:01
-
-
Save aleandros/135b8b53f259deb8935873d1c02c6819 to your computer and use it in GitHub Desktop.
Ecto schema with defaults
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule MyApp.Bank do | |
use MyApp.Web, :model | |
schema "banks" do | |
field :name, :string | |
timestamps() | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment