Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Sotq17/chat-space

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

messageテーブル

Column Type Options
user_id refernces foreign_key:true
group_id refernces foreign_key:true
body text
image string

Association

  • belongs_to :group
  • belongs_to :user

userテーブル

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

Association

  • has_many :messages
  • has_many :groups ,through: :users_groups
  • has_many :users_groups

groupテーブル

Column Type Options
name string null: false

Association

  • has_many :messages
  • has_many :users ,through: :users_groups
  • has_many :users_groups

users_groupsテーブル

Column Type Options
user_id refernces foreign_key: true
group_id refernces 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

  • ...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published