```ruby
module MetasploitDataModels::ActiveRecordModels::ModuleMixin
  def self.included(base)
    base.class_eval{
      base.table_name = "module_mixin"
      belongs_to :module_detail
      validate :name, :presence => true
    }
  end
end
```

Fix typo in table name
user
```ruby
module MetasploitDataModels::ActiveRecordModels::ModuleMixin
  def self.included(base)
    base.class_eval{
      base.table_name = "module_mixins"
      belongs_to :module_detail
      validate :name, :presence => true
    }
  end
end
```
assistant