ashToronto / career_crafter_pro

A resume theming and career building web app
1 stars 0 forks source link

Create a new user Role for employers #84

Open ashToronto opened 1 week ago

ashToronto commented 1 week ago

An employer should have as attributes:

Logo - we already have aws sdk - use S3 to upload images Company Description -> Textarea, string - no actiontext rich text editor Website URL -> validation in model for "https" Industry -> string text input Company Size -> dropdown in UI as a string such as 1-10 employees

An employer should be represented by an Enum in the database. Users have attribulte called 'role':

0: candidate 1: admin

create a new eunm in user model:

2: employer

It should have a UI option in Devise Ui or in some other way, perhaps after registration: you can upgrade via user dashboard?

Update Unit tests (rspec)