Skip to content

EliseFitz15/activerecord-sc-clinic-sp16

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clinic Challenge

Design a schema and create the necessary migrations and models to represent artists and the venues where they perform:

  • Draw out the ER Diagram on paper so that you can understand what data you will need to save and the relationships that you will need to create.

  • Include database constraints and model validations where appropriate.

  • Test your models in pry by running pry -r "./app.rb".

  • This challenge is focused solely on migrations, models, and the database schema. The relevant files are:

    • All files in the app/models directory.
    • All files in the db/migrate directory.
    • The db/schema.rb file.

Artist

  • Artist must have a name.
  • Artist can optionally have a genre.
  • Artists perform at many venues.

Venue

  • A venue must have a name.
  • A venue can optionally have a person capacity.
  • A venue can have many artists performing at it.

Create a Seeder File

  • This file should be located at db/seeds.rb
  • It should contain the code to create, at least, three artists, two venues and at least one relation between the two.
  • Check that it works by running rake db:seed.

Tips

  • You should feel free to add whatever additional migrations/models etc. you need to make these associations work.
  • You do not need to add any routes to the application to make the app functional.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages