I've created new fields, "first_name", "last_name", "email", and "password" in the model generated migrate file as shown:
class CreateUsers < ActiveRecord::Migration[5.2]
def up
create_table :users do |t|
#added fields
t.string "first_name", :limit => 25
t.string "last_name", :limit => 50
t.string "email", :default => '', :null => false
t.string "password", :limit => 40
t.timestamps
end
end
def down
drop_table :users
end
end
However, once I show the fields from, in this case "users"
mysql> SHOW FIELDS FROM users;
It returns this table as it should has, but it should have returned first_name, last_name, email, and password as well.
Furthermore, the schema.rb file also excludes these.
I have no idea why it is not implementing these fields. I'm also fairly new to Rails as well and do appreciate suggestions on title edits to better fit my situation here as I'm unsure whether the terminology is correct. Thank you!