Column | Type | Options |
---|---|---|
name | string | index: true, null: false |
string | null:false, unique: true |
- has_many: recipes
- has_one: myfolder
- has_many: histories
- has_many: kondates
- has_many: comments
Column | Type | Options |
---|---|---|
title | string | index: true, null: false |
catch_copy | text | null: false |
image | string | |
point | text | null: false |
background | text | null: false |
user_id | integer | foreign_key: true |
myfolder_id | integer | foreign_key: true |
- belongs_to: user
- has_many: materials
- has_many: cooking_methods
- belongs_to: myfolder
- has_many: comments
- has_many: tsukurepos
Column | Type | Options |
---|---|---|
name | string | null: false |
quantity | string | null: false |
recipe_id | integer | foreign_key: true |
- belongs_to: recipe
Column | Type | Options |
---|---|---|
body | text | null: false |
num | integer | null: false |
recipe_id | integer | foreign_key: true |
image | string |
- belongs_to: recipe
Column | Type | Options |
---|---|---|
body | text | null: false |
user_id | integer | foreign_key: true |
recipe_id | integer | foreign_key: true |
- belongs_to: user
- belongs_to: recipe
Column | Type | Options |
---|---|---|
user_id | integer | foreign_key: true |
recipe_id | integer | foreign_key: true |
- belongs_to: user
- has_many: recipes
Column | Type | Options |
---|---|---|
title | string | index: true, null: false |
knack | text | null: false |
image | string | |
point | text | null: false |
cook_time | integer | null: false |
- belongs_to: user
Column | Type | Options |
---|---|---|
myfolder_id | integer | foreign_key: true |
name | string | null: false |
- belongs_to: myfolder
Column | Type | Options |
---|---|---|
word | string | null: false |
search_num | integer | null: false |
Column | Type | Options |
---|---|---|
user_id | integer | null: false |
recipe_id | integer | null: false |
- belongs_to: user
Column | Type | Options |
---|---|---|
text | text | null: false |
image | string | |
iine | integer | null: false |
recipe_id | integer | null: false |
- belongs_to: recipe