mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 07:26:17 +08:00
cd3254e170
This code is a no-op on all sites, even though it looks rather dangerous this migration has long run prior to people trying exploit it. That said ... hygiene here ... is not good. Remove this legacy, we do not want it, even in historical migrations.
9 lines
253 B
Ruby
9 lines
253 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AddAdminFlagToUsers < ActiveRecord::Migration[4.2]
|
|
def change
|
|
add_column :users, :admin, :boolean, default: false, null: false
|
|
add_column :users, :moderator, :boolean, default: false, null: false
|
|
end
|
|
end
|