Generates methods for restricting relations by their indexed attributes
Examples:
rom=ROM.container(:sql,'sqlite::memory')do|config|config.create_table(:users)doprimary_key:idcolumn:email,String,null:false,unique:trueendconfig.plugin(:sql,relations::auto_restrictions)config.relation(:users)doschema(infer:true)endend# now `by_email` is available automatically
rom.relations[:users].by_email('jane@doe.org')