title: Error on migration: SQLite3::SQLException: no such table: main.users
body: <p>I'm still pretty new to the Rails world. I've been working on a skill at a time so I thought I'd give Omni-Auth twitter a crack. I've been reading through this tutorial on SitePoint:</p>
  
  <p><a href="http://www.sitepoint.com/rails-authentication-oauth-2-0-omniauth/" rel="nofollow">Rails Authentication with OAuth 2.0 and OmniAuth</a></p>
  
  <p>I'm find up until the point where it has me create a user model and modify the migration file before running <code>rake db:migrate</code>. Here's my migration file based on those instructions:</p>
  
  <pre><code>class CreateUsers &lt; ActiveRecord::Migration
    def change
      create_table :users do |t|
        t.string :provider, null: false
        t.string :uid, null: false
        t.string :name
        t.string :location
        t.string :image_url
        t.string :url
        add_index :users, :providers
        add_index :users, :uid
        add_index :users, [:provider, :uid], unique: true
  
        t.timestamps null: false
      end
    end
  end
  </code></pre>
  
  <p>But when I run <code>rake db:migrate</code> it throws this error:</p>
  
  <pre><code>SQLite3::SQLException: no such table: main.users: CREATE  INDEX "index_users_on_providers" ON "users" ("providers")/Users/jrshafer/.rvm/gems/ruby-2.2.1/gems/sqlite3-1.3.11/lib/sqlite3/database.rb:91:in `initialize'
  </code></pre>
  
  <p>Any help you could provide this aspiring developer would be much appreciated.</p>
  
  <p>You can view the full repo here: 
  <a href="https://github.com/InsomniaNoir/kronoTweeter" rel="nofollow">kronoTweeter GitHub Repo</a></p>