- Git clone the repository to your computer
- In your terminal, run the
bundle install
command - Run the
rails db:migrate
command - Then, run the
rails db:seed
command - You can now open your rails console by typing
rails console
- To display the users table, type
tp User.all
in the rails console. To display the pins table, typetp Pin.all
in the rails console. To display the comments table, typetp Comment.all
in the rails console.
This app is composed of three tables : users
, pins
and comments
They are composed by the the following columns :
TABLE : users
- id,
- name,
TABLE : pins
- id,
- user_id,
- url,
TABLE : comments
- id,
- user_id,
- pin_id,
- content
💋