This README would normally document whatever steps are necessary to get the application up and running.
Things you may want to cover:
-
Ruby version
-
System dependencies
-
Configuration
-
Database creation
-
Database initialization
-
How to run the test suite
-
Services (job queues, cache servers, search engines, etc.)
-
Deployment instructions
-
...
| Column | Type | Options |
|---|---|---|
| name | string | null: false, unique: true |
| string | null: false, unique: true | |
| password | string | null: false |
- has_many :users_groups
- has_many :groups, through: :users_groups
- has_many :messages
| Column | Type | Options |
|---|---|---|
| name | string | null: false, unique: true |
- has_many :group_users
- has_many :users, through: :group_users
- has_many :messages
| Column | Type | Options |
|---|---|---|
| user | references | null: false, foreign_key: true |
| group | references | null: false, foreign_key: true |
- belongs_to :user
- belongs_to :group
| Column | Type | Options |
|---|---|---|
| user | references | null: false, foreign_key: true |
| group | references | null: false, foreign_key: true |
| message | string | |
| image | string |
- belongs_to :user
- belongs_to :group