mirror of
https://github.com/discourse/discourse.git
synced 2024-12-16 16:23:54 +08:00
7 lines
227 B
Ruby
7 lines
227 B
Ruby
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
|