diff --git a/app/models/project.rb b/app/models/project.rb new file mode 100644 index 0000000..9c7fe3f --- /dev/null +++ b/app/models/project.rb @@ -0,0 +1,2 @@ +class Project < ApplicationRecord +end diff --git a/app/models/task.rb b/app/models/task.rb new file mode 100644 index 0000000..3c23424 --- /dev/null +++ b/app/models/task.rb @@ -0,0 +1,2 @@ +class Task < ApplicationRecord +end diff --git a/db/migrate/20260126072711_create_projects.rb b/db/migrate/20260126072711_create_projects.rb new file mode 100644 index 0000000..fdfd571 --- /dev/null +++ b/db/migrate/20260126072711_create_projects.rb @@ -0,0 +1,9 @@ +class CreateProjects < ActiveRecord::Migration[8.1] + def change + create_table :projects do |t| + t.string :project_name + + t.timestamps + end + end +end diff --git a/db/migrate/20260126072814_create_tasks.rb b/db/migrate/20260126072814_create_tasks.rb new file mode 100644 index 0000000..8ca7137 --- /dev/null +++ b/db/migrate/20260126072814_create_tasks.rb @@ -0,0 +1,10 @@ +class CreateTasks < ActiveRecord::Migration[8.1] + def change + create_table :tasks do |t| + t.string :title + t.string :status + + t.timestamps + end + end +end diff --git a/test/fixtures/projects.yml b/test/fixtures/projects.yml new file mode 100644 index 0000000..0f9d978 --- /dev/null +++ b/test/fixtures/projects.yml @@ -0,0 +1,7 @@ +# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +one: + project_name: MyString + +two: + project_name: MyString diff --git a/test/fixtures/tasks.yml b/test/fixtures/tasks.yml new file mode 100644 index 0000000..e41d61c --- /dev/null +++ b/test/fixtures/tasks.yml @@ -0,0 +1,9 @@ +# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +one: + title: MyString + status: MyString + +two: + title: MyString + status: MyString diff --git a/test/models/project_test.rb b/test/models/project_test.rb new file mode 100644 index 0000000..5df4ca4 --- /dev/null +++ b/test/models/project_test.rb @@ -0,0 +1,7 @@ +require "test_helper" + +class ProjectTest < ActiveSupport::TestCase + # test "the truth" do + # assert true + # end +end diff --git a/test/models/task_test.rb b/test/models/task_test.rb new file mode 100644 index 0000000..29982eb --- /dev/null +++ b/test/models/task_test.rb @@ -0,0 +1,7 @@ +require "test_helper" + +class TaskTest < ActiveSupport::TestCase + # test "the truth" do + # assert true + # end +end