start of iteration 2
Some checks failed
/ Run tests (push) Failing after 1m19s
/ Run system tests (push) Failing after 1m18s
/ Build, push and deploy image (push) Has been skipped

This commit is contained in:
david 2024-10-31 23:13:18 +01:00
parent 9fb87a74ce
commit 729ed13521
75 changed files with 705 additions and 170 deletions

View file

@ -0,0 +1,12 @@
class CreatePages < ActiveRecord::Migration[7.2]
def change
create_table :pages do |t|
t.integer :position
t.string :path
t.string :url
t.references :report, null: false, foreign_key: true
t.timestamps
end
end
end

View file

@ -0,0 +1,6 @@
class AddPageIdToElements < ActiveRecord::Migration[7.2]
def change
add_reference :elements, :page, null: false, foreign_key: true
add_column :elements, :position, :integer, default: 0, null: false
end
end

View file

@ -0,0 +1,5 @@
class RemoveReportIdFromElements < ActiveRecord::Migration[7.2]
def change
remove_reference :elements, :report, null: false, foreign_key: true
end
end

View file

@ -0,0 +1,6 @@
class AddQuickFieldsToSuccessCriterion < ActiveRecord::Migration[7.2]
def change
add_reference :success_criteria, :check, null: true, foreign_key: true
add_column :success_criteria, :priority, :integer
end
end

View file

@ -0,0 +1,5 @@
class RemovePathFromElements < ActiveRecord::Migration[7.2]
def change
remove_column :elements, :path, :string
end
end