fixed name for foreign key columns
added ruby types fields names for activerecord