チャットアプリケーションです グループに登録されたユーザー同士でコメントと画像を投稿する事ができます
- 非同期通信でリアルタイムにコメントが表示されます
- インクリメンタルサーチによりグループにユーザーを追加する際、候補が表示されます
- 自動更新に対応しているので他の人のコメントが自動で反映されます
Column | Type | Options |
---|---|---|
id | integer | null: false, unique: true |
name | string | |
string | null: false, unique: true | |
password | string | null: false |
- has_many :groups_users
- has_many :groups, through: :group_users
- has_many :messages
Column | Type | Options |
---|---|---|
id | integer | null: false, unique: true |
name | string | null: false |
- has_many :groups_users
- has_many :users, through: :group_users
- has_many :messages
Column | Type | Options |
---|---|---|
id | integer | null: false, unique: true |
user_id | integer | null: false, foreign_key: true |
group_id | integer | null: false, foreign_key: true |
- belongs_to :group
- belongs_to :user
Column | Type | Options |
---|---|---|
id | integer | null: false, unique: true |
body | text | |
image | string | |
user_id | integer | null: false, foreign_key: true |
group_id | integer | null: false, foreign_key: true |
created_at | timestamps |
- belongs_to :group
- belongs_to :user