Skip to content

Latest commit

 

History

History
59 lines (44 loc) · 1.12 KB

README.md

File metadata and controls

59 lines (44 loc) · 1.12 KB

README

This README would normally document whatever steps are necessary to get the application up and running.

Things you may want to cover:

  • Ruby version

  • System dependencies

  • Configuration

  • Database creation

  • Database initialization

  • How to run the test suite

  • Services (job queues, cache servers, search engines, etc.)

  • Deployment instructions

  • ...

  • name
    "website"
    This project is a website that introduces my portfolio

DB設計

usersテーブル

Column Type Options
email string null: false
password string null: false
name string null: false

Association

  • has_many :products
  • has_many :comments

productsテーブル

Column Type Options
image text
text text
user_id integer null: false, foreign_key: true

Association

  • belongs_to :user
  • has_many :comments

commentsテーブル

Column Type Options
text text null: false
user_id integer null: false, foreign_key: true
product_id integer null: false, foreign_key: true

Association

  • belongs_to :product
  • belongs_to :user