Task status model + default task status generation

This commit is contained in:
2025-10-22 02:01:10 +03:00
parent 293bc06d1e
commit ae1df5f608
7 changed files with 82 additions and 21 deletions
@@ -0,0 +1,13 @@
class CreateTaskStatuses < ActiveRecord::Migration[8.0]
def change
create_table :task_statuses do |t|
t.references :project, null: false, foreign_key: true
t.string :name, null: false
t.integer :category, limit: 2, unsigned: true, null: false
t.index %i[project_id name], unique: true
t.index %i[project_id category name]
t.timestamps
end
end
end