title: NameError: uninitialized constant User
body: <p>I am using the rails-devise apps with Rails composer. Everything seems fine until I try to interact with the model in the console.
  I tried the commands:</p>
  
  <pre><code>rails console
  User.all
  </code></pre>
  
  <p>And I get the following error from the console:</p>
  
  <pre><code>NameError: uninitialized constant User
  from (irb):2
  from /Users/msarr/.rvm/gems/ruby-2.2.1/gems/railties-4.2.5.1/lib/rails/commands/console.rb:110:in `start'
  from /Users/msarr/.rvm/gems/ruby-2.2.1/gems/railties-4.2.5.1/lib/rails/commands/console.rb:9:in `start'
  from /Users/msarr/.rvm/gems/ruby-2.2.1/gems/railties-4.2.5.1/lib/rails/commands/commands_tasks.rb:68:in `console'
  from /Users/msarr/.rvm/gems/ruby-2.2.1/gems/railties-4.2.5.1/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
  from /Users/msarr/.rvm/gems/ruby-2.2.1/gems/railties-4.2.5.1/lib/rails/commands.rb:17:in `&lt;top (required)&gt;'
  from /Users/msarr/Desktop/deployment/YouServe/bin/rails:9:in `&lt;top (required)&gt;'
  from /Users/msarr/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
  from /Users/msarr/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
  from -e:1:in `&lt;main&gt;'
  </code></pre>
  
  <p>Here is my Gemfile:</p>
  
  <pre><code>  source 'https://rubygems.org'
    ruby '2.2.1'
    gem 'rails', '4.2.5.1'
    gem 'sass-rails', '~&gt; 5.0'
    gem 'uglifier', '&gt;= 1.3.0'
    gem 'coffee-rails', '~&gt; 4.1.0'
    gem 'jquery-rails'
    gem 'turbolinks'
    gem 'jbuilder', '~&gt; 2.0'
    gem 'carrierwave'
    gem 'mini_magick'
    gem 'fog'                  
    gem 'administrate'
    gem 'devise'
    gem 'devise_invitable'
    gem 'foundation-rails', '~&gt; 5.5'
    gem 'high_voltage'
    gem 'simple_form'
  
   group :development, :test do
    gem 'byebug'
    gem 'sqlite3'
  end
  group :development do
    gem 'web-console', '~&gt; 2.0'
    gem 'spring'
    gem 'better_errors'
    gem 'hub', :require=&gt;nil
    gem 'quiet_assets'
    gem 'rails_layout'
  end
  
  group :production do
   gem 'pg'
   gem 'rails_12factor'
   gem 'unicorn'
  end
  </code></pre>