mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-01 03:17:53 -05:00
7 lines
285 B
Ruby
7 lines
285 B
Ruby
|
class FixIndexOnPostAction < ActiveRecord::Migration
|
||
|
def change
|
||
|
remove_index "post_actions", name: "idx_unique_actions"
|
||
|
add_index "post_actions", ["user_id", "post_action_type_id", "post_id", "deleted_at", "targets_topic"], name: "idx_unique_actions", unique: true
|
||
|
end
|
||
|
end
|