TaskStatus::Transition model

This commit is contained in:
2026-04-25 14:30:12 +03:00
parent b1038c0d66
commit bf78009df8
4 changed files with 36 additions and 1 deletions
@@ -0,0 +1,10 @@
class CreateTaskStatusTransitions < ActiveRecord::Migration[8.1]
def change
create_table :task_status_transitions do |t|
t.belongs_to :from, null: false, foreign_key: { to_table: :task_statuses }
t.belongs_to :to, null: false, foreign_key: { to_table: :task_statuses }
t.timestamps
end
end
end