TaskStatus::Transition model
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user