Files
subtle-storm/db/migrate/20260321114951_create_workflows.rb
T
2026-03-21 14:02:55 +02:00

15 lines
351 B
Ruby

class CreateWorkflows < ActiveRecord::Migration[8.1]
def change
create_table :workflows do |t|
t.belongs_to :project, null: false, foreign_key: true
t.string :name, null: false
t.string :icon, null: false
t.string :color, null: false
t.index %i[project_id name], unique: true
t.timestamps
end
end
end