[Ruby] DB design with markdown notation [55 days remaining]

less than 1 minute read

Markdown notation used [#] Use as headline Font-size becomes smaller as the number increases. HTML h1~h6 tags

[| string |] Used as table creation By putting colons on the left, right, and right of the string, you can make them left-justified, centered, or right-justified.

[-] Use as bullets Insert a space after the hyphen

Mark down notation DB design. png

Table design

users table

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

Association

  • has_many :room_users
  • has_many :rooms, through :room_users
  • has_many :messages

Since the columns and associations are self-explanatory, this is an essential task for application development.