title: Debugging why a create method is not saving to the model
body: <p>I have this method which after a rake task should save my data to the model, I am trying to update 2 columns at a time, which shouldnt be a problem</p>
  
  <pre><code>  def update_fixtures #rake task method
     Fixture.destroy_all
     get_home_fixtures.each {|home| Fixture.create!(home_team: home )}
     get_away_fixtures.each {|away| Fixture.create!(away_team: away )}
    end
  </code></pre>
  
  <p>In this instance only the away team will save, however if i do this</p>
  
  <pre><code>  def update_fixtures #rake task method
       Fixture.destroy_all
       get_away_fixtures.each {|away| Fixture.create!(away_team: away )}
       get_home_fixtures.each {|home| Fixture.create!(home_team: home )}
    end
  </code></pre>
  
  <p>Then only the home team will save.</p>
  
  <p>I have tried @model.errors.full_messages but get undefined method for nil class, so there are none?</p>
  
  <p>I am trying to debug this issue but unsure on what i can use to find the problem</p>
  
  <p>Has anyone experienced this before? Driving me insane</p>
  
  <p>EDIT</p>
  
  <p>I can update the field manually from the console, so when I do</p>
  
  <pre><code>Fixture.create(:away_team =&gt; "String")
  </code></pre>
  
  <p>it updates fine</p>
  
  <p>Thanks</p>