I think that maybe I found a bug. I have a Animal and a AnimalType models. A animal belongs to a animal type and a animal type has many animals. Ok. Animal type has a attr 'sex', of type integer. When I load the list of animal types, for example, in the animal_types#index method, everything is ok (the data is correct). But, when I do a animal.animal_type, the sex always came as 0. My db is MySQL and I use ruby 1.9.3 and rails 3.2.8. Any issue related to this? Am I possibly doing something wrong? BTW, the data in database seems correct to me. Is it a bug, or is there me doing something wrong? Maybe a database bug? thanks