updated deploy rb for migrate