mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-05 07:13:12 +08:00
8 lines
240 B
Ruby
8 lines
240 B
Ruby
# frozen_string_literal: true
|
|
|
|
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
|