YourClass.reflect_on_all_associations.map(&:name)
Your development team has a full backlog? No time for infrastructure architecture? Our DevOps team is ready to support you!
Get the class name by calling class_name, or the type of the association (belongs_to, has_many,...) by calling macro
class_name
macro