Make the condition on migrate_db a bit safer for using in var_prompt

@feanil  @jarv 

Since we use vars_prompt for migrate_db, I wanted to reduce the possibility of accidentally running migrations.  So I've make the condition on it a bit stronger.