mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 01:43:45 +08:00
10 lines
253 B
Ruby
10 lines
253 B
Ruby
# frozen_string_literal: true
|
|
|
|
class CreateSuggestedForIndex < ActiveRecord::Migration[4.2]
|
|
def change
|
|
add_index :topics,
|
|
%i[created_at visible],
|
|
where: "deleted_at IS NULL AND archetype <> 'private_message'"
|
|
end
|
|
end
|