Last active
August 29, 2015 14:16
-
-
Save alanpeabody/c624a0a8f39d41fff615 to your computer and use it in GitHub Desktop.
embedding elixir structs step 3
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
# Generated with mix ecto.gen.migration add_user_settings_and_address | |
defmodule App.Repo.Migrations.AddUserSettingsAndAddress do | |
use Ecto.Migration | |
def change do | |
alter table(:users) do | |
add :settings, :json | |
add :addresses, :json | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment