title: "undefined method `generate_token'" error when trying to manually create a user
body: <p>When trying to create a new user manually, the error "undefined method `generate_token'" is thrown.  </p>
  
  <p>The code doing this worked in previous versions:</p>
  
  <pre><code>user = User.new(email: email, password: Devise.friendly_token[0,20])
  user.skip_confirmation!
  valid_user = user.save       #&lt;--- error occurs here during .save
  </code></pre>
  
  <p>I'm using these versions in the Gemfile:</p>
  
  <pre><code>ruby '2.0.0'
  gem 'rails', '4.0.0'
  gem 'devise', '~&gt; 3.1.1'
  gem 'devise_uid', '~&gt; 0.0.3'
  </code></pre>
  
  <p>The user.rb Devise model has these modules:</p>
  
  <pre><code>devise :database_authenticatable, :registerable, :recoverable, :rememberable, :trackable, :validatable, :confirmable, :lockable, :timeoutable, :uid
  </code></pre>