discourse/db/migrate/20150224004420_add_pinned_i...

7 lines
204 B
Ruby
Raw Normal View History

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