bdd & rails (thp week 4, day 3)

3/5 - the hacking pinterest

made in pair programming by Maud Lévy 🍤 & Antoine Vercoutère 🍗

How to use

  1. Git clone the repository to your computer
  2. In your terminal, run the bundle install command
  3. Run the rails db:migrate command
  4. Then, run the rails db:seed command
  5. You can now open your rails console by typing rails console
  6. To display the users table, type tp User.all in the rails console. To display the pins table, type tp Pin.all in the rails console. To display the comments table, type tp Comment.all in the rails console.

Composition and information

This app is composed of three tables : users, pins and comments

They are composed by the the following columns :

TABLE : users

  • id,
  • name,
  • email

TABLE : pins

  • id,
  • user_id,
  • url,

TABLE : comments

  • id,
  • user_id,
  • pin_id,
  • content

All exercises

💋