user active record to associate two tables