Hey folks. I would like to create new field in the...
# orm-help
p
Hey folks. I would like to create new field in the database, and set specific value for the existing records. New records should have different value though. How would you handle it? Simply do two migrations? First - set @default for existing records, second- change @default to the value for new records?
d
use the
--create-only
flag to generate the migration but not apply it. Add in the sql to set the values for existing records. Should be easy to do in a single migration
1
p
Thanks!