Files
subtle-storm/db/migrate/20260425112121_create_task_status_transitions.rb
T
2026-04-25 14:30:12 +03:00

11 lines
325 B
Ruby

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