How does one add an attribute to a model?

Yes, the solution by @JCorcuera is applicable, but I suggest applying a little more information to Rails to fulfill our requirement. Try this approach:

rails generate migration add_columnname_to_tablename columnname:datatype

For example:

rails generate migration add_password_to_users password:string

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)