fixed migration for role_id in users table
Fixed incorrect field reference causing issues when saving devices