title: LoadError: cannot load such file --rails on 'rake db:setup'
body: <p>I'm having an issue trying to switch the database in my rails app from the out of box sqlite3 to using postgres.</p>
  
  <p>I've run 'gem install pg' and switched the database.yml file to new settings. Also, I've run 'bundle install' in the directory.</p>
  
  <p>Now, when I run 'rake db:setup', I'm receiving this error:</p>
  
  <pre><code>$ rake db:setup
  rake aborted!
  LoadError: cannot load such file -- rails
  /Users/aaa/Documents/Projects/sample_app/config/application.rb:3:in `require'
  /Users/aaa/Documents/Projects/sample_app/config/application.rb:3:in `&lt;top (required)&gt;'
  /Users/aaa/Documents/Projects/sample_app/Rakefile:4:in `&lt;top (required)&gt;'
  /Users/aaa/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `eval'
  /Users/aaa/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `&lt;main&gt;'
  (See full trace by running task with --trace)
  </code></pre>
  
  <p>Any thoughts? Thank you in advance.</p>