Skip to content

Commit

Permalink
Merge migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
dombesz committed Nov 22, 2024
1 parent 8b0bbbf commit 946f5fb
Showing 3 changed files with 14 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@
# See COPYRIGHT and LICENSE files for more details.
#++

class CreateProjectLifeCycleStepDefinitions < ActiveRecord::Migration[7.1]
class CreateProjectLifeCycles < ActiveRecord::Migration[7.1]
def change
create_table :project_life_cycle_step_definitions do |t|
t.string :type
@@ -36,5 +36,18 @@ def change

t.timestamps
end

create_table :project_life_cycle_steps do |t|
t.string :type
t.date :start_date
t.date :end_date
t.boolean :active, default: false, null: false
t.references :project, foreign_key: true
t.references :definition, foreign_key: { to_table: :project_life_cycle_step_definitions }

t.timestamps
end

add_reference :work_packages, :project_life_cycle_step, null: true
end
end
14 changes: 0 additions & 14 deletions db/migrate/20241105151352_create_project_life_cycle_steps.rb

This file was deleted.

5 changes: 0 additions & 5 deletions db/migrate/20241105175000_add_life_cycle_to_work_packages.rb

This file was deleted.

0 comments on commit 946f5fb

Please sign in to comment.