revise assign drives code
begin migration to new active record function