Closed zhisme closed 5 years ago
This works for me:
def change do
StatusEnum.create_type()
create table(:transactions) do
add :status, StatusEnum.type(), default: "init"
timestamps()
end
end
@cflegel yes, this one works. Thanks!
Hey there. I searched all your repo and source code and couldn't find whether I can set default value for enum during migration.
Expected Result
Actual Result