title: Issue adding user through rails console
body: <p>I have an application that was done by someone else, who was working before me. I am tasked with gaining access back to this application that was developed using Ruby on Rails. I have never used Ruby on Rails before.</p>
  <p>I navigate to the application that was deployed using Heroku, and there's a sign in page. Nobody knows a valid account with credentials so I am forced to figure it out.</p>
  <p>First thing I tried was to list all the user accounts by going into the rails console through heroku using <code>rails c</code>. I type in <code>User.all</code>, I get a <code>#&lt;ActiveRecord::Relation []&gt;</code>, <code>User.first</code> and <code>User.last</code> returns <code>=&gt; nil</code>. Looks like there are no user accounts registered.</p>
  <p>So I try to add in a new account.</p>
  <p>I check the attributes for the User model using <code>User.column_names</code>.</p>
  <pre><code>
  =&gt; [&quot;id&quot;, &quot;email&quot;, &quot;encrypted_password&quot;, &quot;reset_password_token&quot;, &quot;reset_password_sent_at&quot;, &quot;remember_created_at&quot;, &quot;sign_in_count&quot;, &quot;current_sign_in_at&quot;, &quot;last_sign_in_at&quot;, &quot;current_sign_in_ip&quot;, &quot;last_sign_in_ip&quot;, &quot;created_at&quot;, &quot;updated_at&quot;, &quot;profile_id&quot;, &quot;type&quot;, &quot;id_number_id&quot;, &quot;checked_status&quot;, &quot;checkin_timestamp&quot;, &quot;checkout_timestamp&quot;, &quot;permissions&quot;]
  
  </code></pre>
  <p>I also checked the view for a user registration in <code>/views/user/registrations/new.html.erb</code>. The following snippet tells me that you need <code>email</code>, <code>password</code> and <code>password_confirmation</code> to create a new user.</p>
  <pre><code>
  &lt;div class=&quot;form-inputs&quot;&gt;
      &lt;%= f.input :email, required: true, autofocus: true %&gt;
      &lt;%= f.input :password, required: true, hint: (&quot;#{@minimum_password_length} characters minimum&quot; if @minimum_password_length) %&gt;
      &lt;%= f.input :password_confirmation, required: true %&gt;
    &lt;/div&gt;
  
  
  </code></pre>
  <p>So I create a new user as below and get a <code>false</code>.</p>
  <pre><code>
  user1= User.new
  user1.email = &quot;test@example.com&quot;
  user1.password = &quot;test123456&quot;
  user1.password_confirmation= &quot;test123456&quot;
  user1.save
  
     (1.4ms)  BEGIN
    User Exists (1.8ms)  SELECT  1 AS one FROM &quot;users&quot; WHERE &quot;users&quot;.&quot;email&quot; = 'test@example.com' LIMIT 1
     (1.4ms)  ROLLBACK
  =&gt; false
  
  </code></pre>
  <p>I have spent quite some time in this, reading documentations, following tutorials and this is how far I have got. I would REALLY appreciate some guidance on what to look at next to help me figure out how to get a working user account so I can log in to this web application from the webpage.</p>