mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 16:18:42 -05:00
7 lines
222 B
Ruby
7 lines
222 B
Ruby
|
class AddStaffIndexToUsers < ActiveRecord::Migration
|
||
|
def change
|
||
|
add_index :users, [:id], name: 'idx_users_admin', where: 'admin'
|
||
|
add_index :users, [:id], name: 'idx_users_moderator', where: 'moderator'
|
||
|
end
|
||
|
end
|