Added projects
Some checks failed
/ Run tests (push) Failing after 2m3s
/ Run system tests (push) Failing after 2m17s
/ Build, push and deploy image (push) Has been skipped

This commit is contained in:
david 2024-11-24 22:08:36 +01:00
parent 0964187f22
commit 8b4ffb83ec
37 changed files with 470 additions and 1935 deletions

View file

@ -0,0 +1,9 @@
class CreateProjects < ActiveRecord::Migration[8.0]
def change
create_table :projects do |t|
t.string :name
t.timestamps
end
end
end

View file

@ -0,0 +1,5 @@
class AddProjectToReports < ActiveRecord::Migration[8.0]
def change
add_reference :reports, :project, null: true, foreign_key: true
end
end