I am creating a seed file to popularize my database, this file is responsible for popular groups (model: group) that runs without problem and also popular TypeAtivity (model: type_activity), which belongs to group.
When the db: seed rake arrives it turns normally and generates the groups and appears to have generated the types also, just below the code in the seeds file.
But when I go to look at the database it is what appears.
A line is created in the database but it does not save the data in the columns name and group reference (group_id).
I would like to know what is happening, because I have already researched on the Internet and I have not found anything that is very clear about this problem. I have come to see some "protected_attributes", but the gem is facing certain versions of the rails and / or the bundler, I have not been able to identify.
In the case that the question is not clear is to ask that I edit.