class AwsRecord::Generators::GeneratedAttribute
def validate_opt_combs(name, type, opts)
def validate_opt_combs(name, type, opts) return unless opts is_hkey = opts.key?(:hash_key) is_rkey = opts.key?(:range_key) if is_hkey && is_rkey raise ArgumentError, "Field #{name} cannot be a range key and hash key simultaneously" end return unless is_hkey && INVALID_HKEY_TYPES.include?(type) raise ArgumentError, "Field #{name} cannot be a hash key and be of type #{type}" end