Rails plugin to find missing foreign keys

What I have: A big rails app using ar 2.3.11 & postgresql 8.4 db

What I need: Any gem/plugin/library that look for entire models with associations and provide me a list of missing foreign keys


If you can't find it, it shouldn't be hard to implement by yourself, for example as Rake task. You should iterate over all your classes (you need to know model classes before, but maybe there is a way to get list of your models somehow from Rails), call #reflections on all model class and then extract necessary informations.

But if you'll find already implemented solution, then I'll be happy to check it on my old projects too.

Need Your Help

Inner join in Insert query?

c# sql insert

I wanna do something like this:

How can I automate this Windows GUI with .NET?

.net windows authentication windows-7 automation

Whenever we get a new release of code from our vendor, we need to perform basic tests to ensure that they did not break functionality we need.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.