==== ๐บ
- message
- group
- user
- group_user
text | thumbnail | group_id | user_id |
---|---|---|---|
text | text | references | references |
title |
---|
string |
nickname | password | |
---|---|---|
string | string | string |
group_id | user_id |
---|---|
references | references |
- belongs_to :user
- belongs_to :group
- has_many :messages
- has_many :users
- has_many :groups, through: :group_users
- has_many :messages
- belongs_to :group
- belongs_to :user