mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
7 lines
204 B
Ruby
7 lines
204 B
Ruby
|
class AddPinnedIndexes < ActiveRecord::Migration
|
||
|
def change
|
||
|
add_index :topics, :pinned_globally, where: 'pinned_globally'
|
||
|
add_index :topics, :pinned_at, where: 'pinned_at IS NOT NULL'
|
||
|
end
|
||
|
end
|