Addded default badge 'none' and enforced badges

This commit is contained in:
MrYummy
2017-06-02 18:26:48 +02:00
parent 9837f12b59
commit 1e267a64fb
2 changed files with 2 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ class AddBadgeIdToUsers < ActiveRecord::Migration
t.string "color"
end
Badge.create!({name: "none", symbol: "", color: "#000"})
dbadge = Badge.create!({name: "donor", symbol: "$", color: "#f60"})
add_column :users, :badge_id, :integer, default: 0