Add Rails build_stubbed and database specs, as well as SQL foreign key verification, to best practices.