title: Ruby on Rails - Creating Wrong Schema.rb File?
body: <p>Am I correct in saying that the db/schema.rb file should be pulling from the db/migrate files on rake db:migrate?  I am running a rake db:migrate and it is adding a table that isn't defined in the migrate, nor the models.  Any ideas?</p>
  
  <p>Migrate Files (just one):</p>
  
  <pre><code>class CreateUsers &lt; ActiveRecord::Migration
    def change
      create_table :users do |t|
        t.string :email
        t.string :hashed_password
        t.timestamps
      end
    end
  end
  </code></pre>
  
  <p>Resulting Schema after rake:</p>
  
  <pre><code>ActiveRecord::Schema.define(:version =&gt; 20121113214159) do
  
    create_table "user_categories", :force =&gt; true do |t|
      t.string   "title"
      t.string   "description"
  
      t.datetime "created_at",  :null =&gt; false
      t.datetime "updated_at",  :null =&gt; false
    end
  
    create_table "users", :force =&gt; true do |t|
      t.string   "email"
      t.string   "hashed_password"
  
      t.datetime "created_at",                  :null =&gt; false
      t.datetime "updated_at",                  :null =&gt; false
    end
  
  end
  </code></pre>
  
  <p>I had added a user_categories scaffolding earlier, but incorrectly so I destroyed it. Not sure where I went wrong in destroying parts...</p>