Fix error: 'primary_key': wrong number of arguments (1 for 0) (ArgumentError)