"Fossies" - the Fresh Open Source Software Archive

Member "discourse-2.8.3/db/fixtures/005_badge_types.rb" (14 Apr 2022, 202 Bytes) of package /linux/www/discourse-2.8.3.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Ruby source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 # frozen_string_literal: true
    2 
    3 BadgeType.seed do |b|
    4   b.id = 1
    5   b.name = "Gold"
    6 end
    7 
    8 BadgeType.seed do |b|
    9   b.id = 2
   10   b.name = "Silver"
   11 end
   12 
   13 BadgeType.seed do |b|
   14   b.id = 3
   15   b.name = "Bronze"
   16 end