generate migration script