title: Unknown attribute Rails
body: <p>I am new to Rails and I am trying to get my application running.</p>
  
  <p>My UserMigration.rb file contains: </p>
  
  <pre><code>class UserMigration &lt; ActiveRecord::Migration
  def self.up
  
  if (!ActiveRecord::Base.connection.table_exists? :users)
    drop_table :users
  
    create_table :users do |t|
      t.string :email
      t.string :first
      t.string :last
      t.string :password
      t.string :username
      t.integer :created_by
  
      t.string :bio #Newly added
      t.integer :id #Newly added
      t.string :photoURL #Newly added
  
    end
    add_index :users, :email
  end
  if (Models::Persistence::User.count == 0)
    Models::Persistence::User.create({:email =&gt; 'testuser@my.com',
                                      :username =&gt; 'testuser@my.com',
                                      :first =&gt; 'Test',
                                      :last =&gt; 'User',
                                      :password =&gt; 'Test123',
                                      :bio =&gt; "User, student",
                                      :id =&gt; "1",
                                      :photoURL =&gt; "http://link",
                                      :created_by =&gt; 1})
  </code></pre>
  
  <p>And my models User.rb file contains:</p>
  
  <pre><code>module Models
      module Persistence
        class User &lt; ActiveRecord::Base
           validates :bio, :presence =&gt; true, length:  {minimum: 150}
  </code></pre>
  
  <p>I am working off an example and I just recently added the three extra fields in the users table (bio, id and photoURL). I keep getting this error when I run my tests with the newly added fields on the db:</p>
  
  <pre><code>      undefined method `bio' for #&lt;Models::Persistence::User:0x007f8c04ae6838&gt;
  </code></pre>
  
  <p>Any pointers on where I could start debugging this from? Thanks!</p>