Config ActiveRecord DB to use Postgres
Add migration file for Users
- Users have: username, password, and email
Add migration file for Songs
- Songs belong to an artist (and an artist has many songs)
- Song has a title, mp3_url, and photo_url
- Future implementation, I will remove the urls and actually have artists upload their own songs and photos
Add migration file for Favorites
- Favorites is the join table for Users and Songs
- Favorites belongs to Users and Songs
Add migration file for Artists
- Artists has name, password, email, and photo_url
- Future implementation will allow artists to upload their own photo instead of using a url
Update schema.rb
- Add User, Favorites, Songs, and Artists
Merge pull request #2 from alexanderdavidpan/Database_Design

Database design