http://18.177.68.8/users/sign_in
Column |
Type |
Options |
name |
string |
null: false |
email |
string |
null: false |
password |
string |
null: false |
- has_many :messages
- has_many :groups_users
- has_many :groups, through: :groups_users
Column |
Type |
Options |
name |
string |
null: false |
name |
index |
unique: true |
- has_many :messages
- has_many :groups_users
- has_many :users, through: :groups_users
Column |
Type |
Options |
body |
text |
|
image |
text |
|
group_id |
integer |
null: false, foreign_key: true |
user_id |
integer |
null: false, foreign_key: true |
- belongs_to :group
- belongs_to :user
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