feature/share-libs
rb 21 lines 686 Bytes
Raw
1 # Create application badges (uses https://github.com/norman/ambry)
2 Rails.application.reloader.to_prepare do
3 Merit::Badge.create!(
4 id: 1,
5 name: 'pretty-path',
6 description: 'A user has a username. Pretty, huh?',
7 custom_fields: { icon_path: 'media/images/badge-pretty.gif' }
8 )
9 Merit::Badge.create!(
10 id: 2,
11 name: 'spotify-exporter',
12 description: 'I am doing an export-import.',
13 custom_fields: { icon_path: 'media/images/badge-spotify-exporter.gif' }
14 )
15 Merit::Badge.create!(
16 id: 3,
17 name: 'youtube-exporter',
18 description: 'I am doing an export-import.',
19 custom_fields: { icon_path: 'media/images/badge-youtube-exporter.gif' }
20 )
21 end