TeenageHelpline / Progress

Progress HR solution. Built in PHP for maximum flexibility, let Progress manage all of your HR needs.
1 stars 1 forks source link

Added JobPosition, Person models that represent the appopriate databa… #7

Closed BnMcG closed 9 years ago

BnMcG commented 9 years ago

…se tables.

Modifed the User model so that it no longer references Job Position.

Restored original user table migration, wrote migrations to create people table, create pivot table between people and job positions, rename positions to job_positions so that its meaning is clearer, add a gender field to the people table and add timestamps to the job_positions table so they work in Eloquent queries without too much fuss.

Added seeding classes so that the generated user has a password set (password), and 2 new people and 2 new job positions are added to the database and assigned.

BnMcG commented 9 years ago

Fixes issue #6