I am using Rails Fixtures to load some test data to my database and
accidentally I introduced a foreign key out of range.
To my surprise, the database accepted it despite having referential
integrity constraints (that work). I tried with PostgreSQL and with
MySQL InnoDB and both allowed.
Having in the database "Flavours" whith a numeric primary key (id), 5
entries (1 to 5). I can introduce bad data doing:
name: my ice cream
How is it possible that the fixtures loading go around my database