mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 21:10:17 +08:00
7 lines
209 B
Ruby
7 lines
209 B
Ruby
class AddPinnedIndexes < ActiveRecord::Migration[4.2]
|
|
def change
|
|
add_index :topics, :pinned_globally, where: 'pinned_globally'
|
|
add_index :topics, :pinned_at, where: 'pinned_at IS NOT NULL'
|
|
end
|
|
end
|