How could i test if the property with a certain name, is a foreign key
(the foreign key relation is declared in the model, not in the table)
belongs_to :city, :class_name => “City”, :foreign_key => “CITY_ID”
- my property for this example is “CITY_ID”
- i don’t want to test if it has “_id” in the name, the properties
that are foreign keys may not respect the Class_id rule, further if i
find that it’s a foreign key, how cand i found the related class.?
- is there an API command for this?