remove magic_option  and  add validates_uniqueness_of name in a object
use database_cleaner to reset test database
use database_cleaner to reset test database
add dependent  destroy to magic_fields
add type_scoped to all fields