I’ve noticed that when testing is finished that at some point Rails
has removed the foreign key constraints from my test database. Does
anyone know where this foreign key constraint deletion occurs in the
source code. I’d like to turn it off.
I’ve noticed that when testing is finished that at some point Rails
has removed the foreign key constraints from my test database. Does
anyone know where this foreign key constraint deletion occurs in the
source code. I’d like to turn it off.
After much hunting, I found the issue. I needed to add the following
to my environment.rb file
config.active_record.schema_format = :sql
Peter
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.