Files
subtle-storm/db/migrate/20260321132125_change_task_statuses_uniqueness.rb

10 lines
302 B
Ruby

class ChangeTaskStatusesUniqueness < ActiveRecord::Migration[8.1]
def change
change_table :task_statuses, bulk: true do |t|
t.remove_index %i[project_id name], unique: true
t.remove_index %i[project_id category name]
t.index %i[workflow_id name], unique: true
end
end
end