- mail: [email protected]
- pass: aaaaaaaa
Column | Type | Options |
---|---|---|
string | null: false, unique: true | |
password | string | null: false |
name | string | null: false |
- has_many :messages
- has_many :users_groups
- has_many :groups, through: :users_groups
Column | Type | Options |
---|---|---|
group_name | text | null: false |
user_id | integer | foreign_key: true |
- has_many :messages
- has_many :users_groups
- has_many :users, through: :users_groups
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
Column | Type | Options |
---|---|---|
body | text | null: false |
image | string | |
user_id | integer | null: false, foreign_key: true |
group_id | integer | null: false, foreign_key: true |
- belongs_to :user
- belongs_to :group
- mail: [email protected]
- pass: aaaaaaaa