Fix guessing foreign_key for belongs_to associations in constraints
Fix guessing foreign_key for belongs_to associations in constraints

ajacksified/active_scaffold,BookingBug/active_scaffold,silverpond/active_scaffold,vhochstein/active_scaffold,silverpond/active_scaffold,silverpond/active_scaffold,asoltys/active_scaffold,ajacksified/active_scaffold,asoltys/active_scaffold,vhochstein/active_scaffold,vhochstein/active_scaffold,BookingBug/active_scaffold,BookingBug/active_scaffold