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