Created
March 11, 2015 22:20
-
-
Save alanpeabody/df93f6296ec1e3ec6b61 to your computer and use it in GitHub Desktop.
embedding elixir structs step 4
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 App.Models.User do | |
use Ecto.Model | |
schema "users" do | |
field :email, :string | |
field :crypted_pass, :string | |
field :settings, App.Models.Settings.Type | |
field :addresses, App.Models.Address.Type | |
timestamps | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment