Skip to content

add notes order #269

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions docs/how-to-add-dojo.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 新規Dojoの追加方法

新規Dojoから申請が来た場合の手順書( 2018/02/26現在)
新規Dojoから申請が来た場合の手順書( 2018/02/28現在)

## Dojo DBの追加手順

Expand All @@ -11,7 +11,6 @@

```yaml
- created_at: '2016-12-19'
order: '473251'
name: 嘉手納 (沖縄)
prefecture_id: 47
logo: "/img/dojos/kadena.png"
Expand All @@ -28,7 +27,7 @@
| Dojoカラム | フォーム |
|:-----------------|:------------------:|
| `created_at` | タイムスタンプ |
| `order` | [全国地方公共団体コード] (https://docs.google.com/spreadsheets/d/1b2XZxifpP8GSASvP9sPq1BYwsCH6Y_FHSkol_nfaGxw/edit#gid=1813423171) |
| `order` [^1] | [全国地方公共団体コード](https://docs.google.com/spreadsheets/d/1b2XZxifpP8GSASvP9sPq1BYwsCH6Y_FHSkol_nfaGxw/edit#gid=1813423171) |
|`name` | 正式名称 |
| `prefecture_id` | `db/seeds.rb` の該当番号 |
|`logo` | `public/` のDojo画像パス |
Expand All @@ -37,6 +36,14 @@
|`tags` | フォーム `Dojo で対応可能な技術を教えてください (最大5つまで)`|


### `order` の値について

[^1]: `order`の値はDojoの名称が公共団体名になっている場合は省略可能です。
- `order`の値はDojoの名称が公共団体名になっている場合は省略可能です。
- Dojo名が市町村以外の名称になっている場合のみ入力をする必要があります。
- ex. 嘉手納は嘉手納市がある為省略可能


- ここまで記述した後に `be rails dojos:update_db_by_yaml` を実行しdbに新規Dojoを反映する
- その後 `be rails dojos:migrate_adding_id_to_yaml`  を実行し、yamlにidが動的に付けられた事を確認する

Expand Down