ylaifa / reliev

1 stars 1 forks source link

Create EmployeeProfile model #35

Open OnyJ opened 4 years ago

OnyJ commented 4 years ago

Why ? To make the company being able to send invites to the employees. The employees will connect and see informations about the reservation made by the company.

How ? Create the model

Migration editing :

Model editing :

Testing the model in console (we need the other following models to be created before these tests : Company, CompanyProfile). Testing link to Employee devise model :

Must Have A complete EmployeeProfile model, connected to the Employee model made with devise. The EmployeeProfile model belongs to a company.

Reading List