removed set_primary_key idnum in user.rb