![Image from Gyazo](https://camo.githubusercontent.com/eed58a4be625239eb56b623eed9edd0babeb0810fd8110f3da68cd41adcfc4b1/68747470733a2f2f692e6779617a6f2e636f6d2f36393164336133366161643932313231666264616266336462643832353161642e676966)
プログラミングスクールTECH::EXPERTのカリキュラム内の課題にて作成いたしました。
![Image from Gyazo](https://camo.githubusercontent.com/a1902cd8e7259f1549a2da0603e29c84d55a807ffda3fa7fa964a8b9f836aeb2/68747470733a2f2f692e6779617a6f2e636f6d2f66346433333666373931656564306438383962353130313837646239333636382e706e67)
![Image from Gyazo](https://camo.githubusercontent.com/9622889be5bd02ad76228fccb7e77c720de427d1c645181e39104350a5952229/68747470733a2f2f692e6779617a6f2e636f6d2f32306336633839356134623064346331663736663733623263373135323761372e706e67)
![Image from Gyazo](https://camo.githubusercontent.com/008b03316229cc776efb6dae99ea6cb0ccb759941f6f9fb86bb252d8e6acffe2/68747470733a2f2f692e6779617a6f2e636f6d2f61636364363431653139333132636334616632326535643236323363363061652e706e67)
![Image from Gyazo](https://camo.githubusercontent.com/eed58a4be625239eb56b623eed9edd0babeb0810fd8110f3da68cd41adcfc4b1/68747470733a2f2f692e6779617a6f2e636f6d2f36393164336133366161643932313231666264616266336462643832353161642e676966)
![スクリーンショット 2020-02-09 22 51 47](https://user-images.githubusercontent.com/57389471/74103373-f10fb880-4b8e-11ea-8a62-31f4121ef95a.png)
Column |
Type |
Options |
email |
string |
null: false |
password |
string |
null: false |
name |
string |
null: false |
- has_many :messages
- has_many :groups_users
- has_many :groups, through: :groups_users
Column |
Type |
Options |
image |
text |
|
text |
text |
|
user_id |
integer |
null: false, foreign_key: true |
group_id |
integer |
null: false, foreign_key: true |
- belongs_to :user
- belongs_to :group
Column |
Type |
Options |
name |
string |
null: false |
- has_many :groups_users
- has_many :messages
- has_many :users, through: :groups_users
Column |
Type |
Options |
user_id |
integer |
null: false, foreign_key: true |
group_id |
integer |
null: false, foreign_key: true |
- belongs_to :group
- belongs_to :user