class CreateCustomWorkflows < ActiveRecord::Migration[6.1] def change create_table :custom_workflows do |t| t.string :name, null: false t.text :description t.integer :tracker_id t.integer :project_id t.boolean :is_default, default: false t.boolean :active, default: true t.timestamps end add_index :custom_workflows, :tracker_id add_index :custom_workflows, :project_id add_index :custom_workflows, :is_default end end