Skip to content

Instantly share code, notes, and snippets.

@mrfoh
Created April 9, 2019 14:43
Show Gist options
  • Save mrfoh/5f0fced0a39c4be1031839b461b81a98 to your computer and use it in GitHub Desktop.
Save mrfoh/5f0fced0a39c4be1031839b461b81a98 to your computer and use it in GitHub Desktop.
Assignment
Fork this [repo](https://github.com/mrfoh/timeoff-backend) for the timeoff backend app, as this will serve a foundation for
the backend for your Timeoff application
1. Maintaining the current structure, create new migrations for the following tables;
a. users with the following columns; first_name, last_name, email, password, timestamps
b. requests; user_id, organization_id, employee_id, request_type(type of timeoff), start_date, end_date, status(status of the request), timestamps
2. Define models for the
a. users table
b. requests table
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment