title: rails console returns hashes on class definitions
body: <p>just wanted to test some associations in the rails console. Defined classes for that purpose to "contain" the associations.</p>
  
  <p>I recently switched db-adapter from sqlite3 to mysql. Could it be an effect thereof? </p>
  
  <p>Or is it a matter of settings and I can change the behaviour of the rails console in this respect (and possibly others)</p>
  
  <p>Thanks</p>
  
  <p>On the reasonable request by Dan for an example</p>
  
  <pre><code>2.6.0 :005 &gt; class Node &lt; ApplicationRecord
  2.6.0 :006?&gt;   belongs_to :parent, polymorphic: true
  2.6.0 :007?&gt;   has_many :children, as: :parent
  2.6.0 :008?&gt;   end
   =&gt; {"parent"=&gt;#&lt;ActiveRecord::Reflection::BelongsToReflection:0x0000560b72e96ed8 @name=:parent, @scope=nil, @options={:polymorphic=&gt;true}, @active_record=Note (**call 'Node.connection' to establish a connection**), @klass=nil, @plural_name="parents", @type=nil, @foreign_type="parent_type", @constructable=false, @association_scope_cache=#&lt;Concurrent::Map:0x0000560b72e96a78 entries=0 default_proc=nil&gt;&gt;, "children"=&gt;#&lt;ActiveRecord::Reflection::HasManyReflection:0x0000560b72ebac98 @name=:children, @scope=nil, @options={:as=&gt;:parent}, @active_record=Note (call 'Node.connection' to establish a connection), @klass=nil, @plural_name="children", @type="parent_type", @foreign_type=nil, @constructable=true, @association_scope_cache=#&lt;Concurrent::Map:0x0000560b72eba8d8 entries=0 default_proc=nil&gt;&gt;} 
  </code></pre>