2019-05-02 18:17:27 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-08-31 00:06:56 -04:00
|
|
|
class FixupBadgeIds < ActiveRecord::Migration[4.2]
|
2014-08-05 20:51:39 -04:00
|
|
|
def change
|
|
|
|
# badge ids were below 100, for user badges, this really messed stuff up
|
|
|
|
# to resolve this add a "system" flag which we can use to figure out what
|
|
|
|
# badges to bump
|
|
|
|
add_column :badges, :system, :boolean, default: false, null: false
|
|
|
|
end
|
|
|
|
end
|