- Ruby 2.5.1
- Ruby on Rails 5.0.7.2
- HAML
- SCSS
- BEM
- JavaScript
- jQuery
- Font Awesome5
- MySQL2
- AWS
- Amazon S3
- Nginx
- Unicorn
- CarrierWave
- capistrano
$ git clone https://github.com/aocattleya/GroupChat-App.git
$ cd GroupChat-App
$ bundle install
$ rails db:create
$ rails db:migrate
$ rails s
👉http://localhost:3000/
Column | Type | Options |
---|---|---|
name | string | null: false |
string | null: false, unique: true | |
password | string | null: false |
- has_many : users_groups
- has_many : messages
- has_many : groups through: :users_groups
Column | Type | Options |
---|---|---|
name | string | null: false |
- has_many : messages
- has_many : users_groups
- has_many : users through: :users_groups
Column | Type | Options |
---|---|---|
body | text | |
image | string | |
user_id | integer | null: false, foreign_key: true |
group_id | integer | null: false, foreign_key: true |
- belongs_to : user
- belongs_to : group
Column | Type | Options |
---|---|---|
user_id | integer | null: false |
group_id | integer | null: false |
- belongs_to : user
- belongs_to : group