where method added, primary_key bug fixed,requiring active_support/core_ext/hash