The only datatype attributes that a rails model accepts is:
:binary
:boolean
:date
:datetime
:decimal
:float
:integer
:bigint
:primary_key
:references
:string
:text
:time
:timestamp
If you needed to attach a profile image to each user, I would recommend hosting/using an image online and attaching the url as a string to the user as an attribute. But, as far as I know, you can't attach the actual file to the user model. But when you're loading the profile picture, you can use the link to load it. You'll have to change your createusers migration file to store the url, drop the table, create the table, and migrate again. So to change the file, it might look something like this:
Afterwards, delete your schema if you have one, and run rails db:drop && rails db:create && rails db:migrate in the console. Now you can store the url in that string and use it to populate the profile picture area.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
The only datatype attributes that a rails model accepts is:
:binary
:boolean
:date
:datetime
:decimal
:float
:integer
:bigint
:primary_key
:references
:string
:text
:time
:timestamp
If you needed to attach a profile image to each user, I would recommend hosting/using an image online and attaching the url as a string to the user as an attribute. But, as far as I know, you can't attach the actual file to the user model. But when you're loading the profile picture, you can use the link to load it. You'll have to change your createusers migration file to store the url, drop the table, create the table, and migrate again. So to change the file, it might look something like this:
Afterwards, delete your schema if you have one, and run rails db:drop && rails db:create && rails db:migrate in the console. Now you can store the url in that string and use it to populate the profile picture area.