Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Processing data #2

Merged
merged 7 commits into from
Oct 30, 2023
Merged

Processing data #2

merged 7 commits into from
Oct 30, 2023

Conversation

zbahati
Copy link
Owner

@zbahati zbahati commented Oct 26, 2023

  • Create model classes for all entities

  • Set up associations between models.

  • Remember that author_id column in posts table should be the foreign_key for the users table.

  • Create users

  • Create at least 6 posts comments

methods

  • Users

    • A method that returns the 3 most recent posts for a given user.
  • Posts

    • A method that updates the posts counter for a user.
    • A method which returns the 5 most recent comments for a given post.
  • Comments

    • A method that updates the comments counter for a post.
  • Likes

    • A method that updates the likes counter for a post.

    Finishes ...

zbahati and others added 7 commits October 25, 2023 17:30
- Add files
- Create application migrations
- Add models class for the migrations
- already finish two tables users table , and posts tables with authorid refrence to the post
-Add like model
- migrate to make sure that rails server is running without error
 - Add styles linters for the css styles
- Remeove all linters error

# Finishes ..
- Add migration file to change Column of Likes
- Add migration file to change columns of comments
- Add migration file to change columns of Posts
- Add migratio file to changes columns of Users
Copy link

@TadesseDev TadesseDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @zbahati

I'm Tadesse Alemayehu your reviewer for this PR. ✋

Your project is complete! There is nothing else to say other than... it's time to merge it :shipit:
Congratulations! 🎉
AmazingCreepyFrogmouth-max-1mb

Highlights

  • Associations are set up accordingly ✅
  • Custom methods are created. ✅
  • You have written a clean code ✅
  • Functrional app. ✅

Optional suggestions

  • N/A

Cheers and Happy coding!👏👏👏

Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.


As described in the Code reviews limits policy you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.

@zbahati zbahati merged commit 16d890f into develop Oct 30, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants