title: How do I load this yml file in rails?
body: <p>I received this yml data file from a colleague who is unreachable. I need to load it to get the data, but I'm not sure how:</p>
  
  <pre><code>---
  - !ruby/object:Question
    concise_attributes:
    - !ruby/object:ActiveModel::Attribute::FromDatabase
      name: id
      value_before_type_cast: 1
    - !ruby/object:ActiveModel::Attribute::FromDatabase
      name: name
      value_before_type_cast: Trip Summary
    - !ruby/object:ActiveModel::Attribute::FromDatabase
      name: question
      value_before_type_cast: Please state your general feelings about itinerary, the
        group, and the operations. How did it go overall?
    - !ruby/object:ActiveModel::Attribute::FromDatabase
      name: created_at
    - !ruby/object:ActiveModel::Attribute::FromDatabase
      name: updated_at
    new_record: false
    active_record_yaml_version: 2
  - !ruby/object:Question
    concise_attributes:
    - !ruby/object:ActiveModel::Attribute::FromDatabase
      name: id
      value_before_type_cast: 2
    - !ruby/object:ActiveModel::Attribute::FromDatabase
      name: name
      value_before_type_cast: Itinerary
    - !ruby/object:ActiveModel::Attribute::FromDatabase
      name: question
      value_before_type_cast: Did you and the clients like the itinerary? If not, why
        not? How could it be improved? Was it accurate? Did you make any adjustments
        to the itinerary? Please describe any special things you did on the trip that
        were not part of the itinerary.
    - !ruby/object:ActiveModel::Attribute::FromDatabase
      name: created_at
    - !ruby/object:ActiveModel::Attribute::FromDatabase
      name: updated_at
    new_record: false
    active_record_yaml_version: 2
  </code></pre>
  
  <p>My first guess was to use the yaml_db gem, and then YAML::load_file itself directly, but I get the error:</p>
  
  <pre><code>ArgumentError: undefined class/module Question
  </code></pre>
  
  <p>Even though there is a Question model in the app"</p>
  
  <pre><code>class Question &lt; ActiveRecord::Base
  end
  </code></pre>