add_key migration: exclude abstract classes -> FKs without table

If a relationship is defined in an abstract class, the FK is created with `nil` on `from_table` or `to_table`. This provokes a no method error on nil class.

In order to avoid that, we can exclude from the FKs list any FK with a missing table.