title: db:seed is throwing an error
body: <p>I'm using ruby 1.9.2 with rails 3.0.9.</p>
  
  <p>Whenever I try to execute rake db:seed it throws following error:</p>
  
  <pre><code>rake aborted!
  uninitialized constant EmployeeCategory
  </code></pre>
  
  <p>I've disabled threadsafe and enabled 'dependency_loading in config/application.rb file.</p>
  
  <pre><code>config.threadsafe! unless $rails_rake_task
  config.dependency_loading = true
  </code></pre>
  
  <p>But it is still not working.</p>
  
  <p>Here's the content of seed.rb file</p>
  
  <pre><code>StudentCategory.destroy_all
  StudentCategory.create([
   {:name=&gt;"OBC",:is_deleted=&gt;false},
   {:name=&gt;"General",:is_deleted=&gt;false}
  ])
  
  EmployeeCategory.create([
  {:name =&gt; 'Management',:prefix =&gt; 'MGMT',:status =&gt; true},
  {:name =&gt; 'Teaching',:prefix =&gt; 'TCR',:status =&gt; true},
  {:name =&gt; 'Fedena Admin',:prefix =&gt; 'Admin',:status =&gt; true},
  {:name =&gt; 'Non-Teaching',:prefix =&gt; 'NTCR',:status =&gt; true}
  ])
  EmployeePosition.create([
  {:name =&gt; 'Principal',:employee_category_id =&gt; 2,:status =&gt; true},
  {:name =&gt; 'Jr.Teacher',:employee_category_id =&gt; 3,:status =&gt; true},
  {:name =&gt; 'Clerk',:employee_category_id =&gt; 4,:status =&gt; true}
  ])
  </code></pre>