I recently started an application that is using foreign key
constraints in the database. How do I get these constraints to be
placed in the test database to ensure that my tests are running on the
same schema that my application is?
Thanks,
Alex
I recently started an application that is using foreign key
constraints in the database. How do I get these constraints to be
placed in the test database to ensure that my tests are running on the
same schema that my application is?
Thanks,
Alex
Alex Kroman wrote:
I recently started an application that is using foreign key
constraints in the database. How do I get these constraints to be
placed in the test database to ensure that my tests are running on the
same schema that my application is?
The foreign_key_migrations plugin [1] will make this happen for you, if
you create foreign keys using migrations like that plugin prescribes.
[1] http://www.redhillonrails.org/
–
Roderick van Domburg
http://www.nedforce.nl
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs