Skip to content

Latest commit

 

History

History
79 lines (49 loc) · 1.26 KB

README.md

File metadata and controls

79 lines (49 loc) · 1.26 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

  • ...

membersテーブル

Column Type Options
user references null: false, foreign_key: true
group references null: false, foreign_key: true

Association

  • belongs_to :group
  • belongs_to :user

usersテーブル

Column Type Options
name string null: false
e-mail varchar null: false
password varchar null: false

Association

_ has_many :members _ has_many :groups, through: :members _ has_many :messages

groupテーブル

Column Type Options
name string null:false

Association

_ has_many :members _ has_many :users, through: :members _ has_many :messages

messageテーブル

Column Type Options
user references null: false, foreign_key: true
group references null: false, foreign_key: true
text text -
image text -

Association

_ belongs_to :user _ belongs_to :group