Untie statuses from the project directly (tie to workflows)
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
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
|
||||
@@ -0,0 +1,5 @@
|
||||
class AddNullFalseToTaskStatusesWorkflow < ActiveRecord::Migration[8.1]
|
||||
def change
|
||||
change_column_null :task_statuses, :workflow_id, false
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,5 @@
|
||||
class DropProjectIdFromTaskStatuses < ActiveRecord::Migration[8.1]
|
||||
def change
|
||||
remove_reference :task_statuses, :project, foreign_key: true
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user