Skip to content

hirakei1203/chat-space

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

  • Database initialization

  • How to run the test suite

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

  • Deployment instructions

  • ...

groups_usersテーブル

Column Type Options
user_id integer null: false, foreign_key: true
group_id integer null: false, foreign_key: true

Association

  • belongs_to :group
  • belongs_to :user

messageテーブル

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

Association

  • belongs_to :user
  • belongs_to :group

userテーブル

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

Association

  • has_many :messages
  • has_many :groups_users
  • has_many :groups, through: :groups_users

groupテーブル

Column Type Options
name string null: false

Association

  • has_many :messages
  • has many :groups_users
  • has_many :users, through: :groups_users

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published