Trying to add first_name & last_name to an existing model User
First did this:
rails g migration first_name_to_users first_name:string
then did this:
rails g migration last_name_to_users last_name:string
obviously ran rake db:migrate
which resulted in this:
== FirstNameToUsers: migrating =============================================== == FirstNameToUsers: migrated (0.0000s) ======================================
== LastNameToUsers: migrating ================================================ == LastNameToUsers: migrated (0.0000s) =======================================
But it doesn't show up in the table!
If I go into rails console and run User.column_names
, I get this:
=> ["id", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at"]
If anyone asks if it shows up in db/migrate folder, the answer is yes.
Here's the last_name one:
class LastNameToUsers < ActiveRecord::Migration
def change
end
end
So ... why is it not showing up in the table?