[Improvement] Better usage when use make_required
make_optional
and remove
on the migration.
#1033
Labels
clarify api
Rename/remove/add something to make the API easier to understand
Assume my db table foo, have two column, column1, column2
this is a common use case where the data from
column1
is migrated tocolumn2
and then remove columncolumn1
, and then make column2 required.so, migration like this:
It works!, but i consider it is better if we can use like following:
Or
Thanks
EDIT: okay, probably write
migrate data
anddelete old column
in same migration file is not good idea, but anyway, same usage is better.The text was updated successfully, but these errors were encountered: