Is there a programmatic way to find the different associations that an
particular model has?
For example, if I have the following:
class File < ActiveRecord::Base
is there a way to get the list of symbols/strings that this class has
associated under the has_many association?