marp |
---|
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 |
---|---|---|
id | integer | null: false, unique: true |
name | string | null: false, unique: true |
email_address | string | null: false, unique: true |
password | string | null: false, unique: true |
- has_many :comments
- has_many :groups, through: :users_groups
- has_many :users_groups
Column | Type | Options |
---|---|---|
id | integer | null: false, unique: true |
comment | string | |
photo | text | |
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 |
---|---|---|
id | integer | null: false, unique: true |
name | string | null: false, unique: true |
- has_many :users, through: :users_groups
- has_many :users_groups
- has_many :messages
Column | Type | Options |
---|---|---|
id | integer | null: false, unique: true |
user_id | integer | foreign_key: tur |
group_id | integer | foreign_key: true |
- belongs_to :user
- belongs_to :group
bundle exec unicorn_rails -c config/unicorn.rb -E production -D でカリキュラムにないエラーが出た. 間違って devise model User を実行し,コントロールの中に意味のないUser ディレクトリを作成していた のが原因