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

DB設計

users_table

Column Type Options
name string null: false, unique: true
email string null: false, unique: true

Association

  • has_many :messages
  • has_many :members
  • has_many :groups, through: :members

groups_table

Column Type Options
name string null: false, unique: true

Association

  • has_many :messages
  • has_many :members
  • has_many :users, through: :members

messages_table

Column Type Options
body text
image string
user_id references null: false, foreign_key: true
group_id references null: false, foreign_key: true

Association

  • belongs_to :user
  • belongs_to :group

members_table

Column Type Options
user_id references foreign_key: true
group_id references foreign_key: true

Association

  • belongs_to :group
  • belongs_to :user
  • Database initialization

  • How to run the test suite

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

  • Deployment instructions

  • ...

Column Type Options