View Code? Open in Web Editor
NEW
This project forked from hayato-shirasaka/chat-space
Ruby 58.81%
JavaScript 1.63%
CSS 21.79%
HTML 17.77%
chat-space-1's Introduction
-the database of chat-space
column |
type |
option |
body |
text |
|
image |
string |
|
group_id |
references |
foreign_key: true |
user_id |
references |
foreign_key: true |
- belongs_to :user
- belongs_to :group
column |
type |
option |
name |
text |
unique: true, add_index |
email |
string |
unique: true |
password |
string |
null: false |
- has_many :messages
- has_many :groups, through: groups_users
- has_many :groups_users
column |
type |
option |
name |
text |
null: false, add_index |
user_id |
references |
foreign_key: true |
- has_many :users
- has_many :messages, through:groups_users
- has_many :groups_users
column |
type |
option |
user_id |
refernces |
foreign_key: true |
group_id |
refernces |
foreign_key: true |
- belongs_to :group
- belongs_to :user
chat-space-1's People
Contributors
Watchers