mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 01:42:04 +08:00
19 lines
463 B
Ruby
19 lines
463 B
Ruby
# frozen_string_literal: true
|
|
|
|
class ChangeIndexesTopicViewItem < ActiveRecord::Migration[5.1]
|
|
def up
|
|
remove_index :topic_views,
|
|
column: %i[ip_address topic_id],
|
|
name: :ip_address_topic_id_topic_views,
|
|
unique: true
|
|
|
|
remove_index :topic_views,
|
|
column: %i[user_id topic_id],
|
|
name: :user_id_topic_id_topic_views,
|
|
unique: true
|
|
end
|
|
|
|
def down
|
|
end
|
|
end
|