mirror of
https://github.com/discourse/discourse.git
synced 2024-12-15 20:03:44 +08:00
7 lines
290 B
Ruby
7 lines
290 B
Ruby
class FixIndexOnPostAction < ActiveRecord::Migration[4.2]
|
|
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
|