KalibroModule persisted using ActiveRecord.

signed-off-by: Diego Araújo <diegoamc90@gmail.com>
ModuleResult persistence and association with KalibroModule
ModuleResult association tests

Modified Module's name and granularity getters and setters so they are represented as string on DB and objects for the class
Fixed typo.
Implementing metric_results on module_result instead of implementing metric_results_of(module_result_id) on metric_result. Active record already did this for us. Implemented only the corresponding test.

Signed-off-by: Renan Fichberg <rfichberg@gmail.com>
MetricResult using ActiveRecord.

signed-off-by: Alessandro Palmeira <alessandro.palmeira@gmail.com>
signed-off-by: Rafael Manzo <rr.manzo@gmail.com>
signed-off-by: Renan Fichberg <rfichberg@gmail.com>
MetricResult associated with ModuleResult.
Fixed ModuleResult specs after rebase
ModuleResult refactored to use ActiveRecord association for MetricResult retrieval
Removed unecessary test introduced by 717ab03fc5aee849e3dcf13a706e3da8bf4b26b2