Created
November 24, 2016 20:26
-
-
Save pareeohnos/b8d4dc283d033be3b92c0fd2e4cff47d to your computer and use it in GitHub Desktop.
This file contains hidden or 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 CustomPK.Repo.Migrations.CreateParent do | |
use Ecto.Migration | |
def change do | |
create table(:parent, primary_key: false) do | |
add :parent_id, :integer, primary_key: true | |
add :parent_code, :text, null: false | |
add :settings, :text | |
timestamps() | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment