```ruby
module MetasploitDataModels::ActiveRecordModels::Ref
  def self.included(base)
    base.class_eval{
      has_many :vulns, :through => :vulns_refs, :class_name => "Mdm::Vuln"
    }
  end
end
```

Add missing has_many back to the model
user
```ruby
module MetasploitDataModels::ActiveRecordModels::Ref
  def self.included(base)
    base.class_eval{
      has_many :vulns, :through => :vulns_refs, :class_name => "Mdm::Vuln"
      has_many :vulns_refs, :class_name => "Mdm::VulnRef"
    }
  end
end
```
assistant