def is_reflection?(c)
        has_many = ActiveRecord::Reflection::HasManyReflection
        has_and_belongs_to_many = ActiveRecord::Reflection::HasAndBelongsToManyReflection
        has_many_through = ActiveRecord::Reflection::ThroughReflection

        result = c.is_a?(has_many) || c.is_a?(has_and_belongs_to_many)
        result || c.is_a?(has_many_through)
      end
def is_reflection?(c)
        has_many = ActiveRecord::Reflection::HasManyReflection
        has_and_belongs_to_many = ActiveRecord::Reflection::HasAndBelongsToManyReflection
        has_many_through = ActiveRecord::Reflection::ThroughReflection

        result = c.is_a?(has_many) || c.is_a?(has_and_belongs_to_many)
        result || c.is_a?(has_many_through)
      end
Check whether the given column is a reflection or not.