rubyforgood / shelter-assist

Software to help foster-based animal rescues keep track of their animals and people.
14 stars 13 forks source link

Cleanup database fields #74

Closed wadewinningham closed 2 years ago

wadewinningham commented 2 years ago

During the big PR that added the signup form, we left a few corners of the database a bit out of sorts. This PR fixes those up.

  1. Removes now-unused columns for street and apt from the people table since they moved to the homes table. The signup form was already putting the data in the homes table.
  2. Updates the relation fields in person_animals to be bigint values vs. int so they match the types of their related tables. Also adds foreign key constraints on them like the other tables in the database.
  3. Adds relevant foreign key constraints to the people_roles table.
shelter-assist-schema