mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-04-30 14:37:46 +08:00
8 lines
258 B
Ruby
8 lines
258 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AddStaffIndexToUsers < ActiveRecord::Migration[4.2]
|
|
def change
|
|
add_index :users, [:id], name: "idx_users_admin", where: "admin"
|
|
add_index :users, [:id], name: "idx_users_moderator", where: "moderator"
|
|
end
|
|
end
|