Skip to content

Commit 1d58dff

Browse files
committed
Add 'note' column for updating DB task from YAML
1 parent 82f739b commit 1d58dff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/tasks/dojos.rake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,15 @@ namespace :dojos do
3232
d.name = dojo['name']
3333
d.counter = dojo['counter'] || 1
3434
d.email = ''
35-
d.order = dojo['order'] || search_order_number(dojo['name'])
3635
d.description = dojo['description']
3736
d.logo = dojo['logo']
3837
d.tags = dojo['tags']
38+
d.note = dojo['note'] || '' # For internal comments for developers
3939
d.url = dojo['url']
4040
d.created_at = d.new_record? ? Time.zone.now : dojo['created_at'] || d.created_at
4141
d.updated_at = Time.zone.now
4242
d.prefecture_id = dojo['prefecture_id']
43+
d.order = dojo['order'] || search_order_number(dojo['name'])
4344
d.is_active = dojo['is_active'].nil? ? true : dojo['is_active']
4445
d.is_private = dojo['is_private'].nil? ? false : dojo['is_private']
4546

0 commit comments

Comments
 (0)