Last active
June 9, 2017 03:31
-
-
Save abadongutierrez/69dcf30979640dd2b35178b489c4e296 to your computer and use it in GitHub Desktop.
Ecto migration file to create a table department
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 Ecto101MigrationsSchemas.Repo.Migrations.DepartmentTable do | |
use Ecto.Migration | |
def change do | |
create table(:department) do | |
add :name, :text, null: false | |
timestamps() | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment