title: Is there a way to seed hashes using the Faker gem?
body: <p>I am trying to seed some data but I have a field that takes in a hash. When I do the following</p>
  
  <pre><code>50.times do 
    Event.create(
      name: Faker::Internet.name,
      data: Faker::Lorem.words(4),
      uri:  Faker::Internet.url
      )
  end
  events = Event.all
  </code></pre>
  
  <p>I get an error saying that data is being seeded as an array since it's a hash field. Is there a work around this?</p>
  
  <pre><code>rake aborted!
  Mongoid::Errors::InvalidValue: 
  Problem:
    Value of type Array cannot be written to a field of type Hash
  Summary:
    Tried to set a value of type Array to a field of type Hash
  </code></pre>
  
  <p>I tried doing the following:</p>
  
  <pre><code>data: Faker::Lorem.words(4).to_h
  </code></pre>
  
  <p>but it doesn't seem to work.</p>