Skip to content

Instantly share code, notes, and snippets.

@alanpeabody
Last active August 29, 2015 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alanpeabody/c624a0a8f39d41fff615 to your computer and use it in GitHub Desktop.
Save alanpeabody/c624a0a8f39d41fff615 to your computer and use it in GitHub Desktop.
embedding elixir structs step 3
# 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