add models for Project, Task, Note, Category

This commit is contained in:
2025-06-11 19:56:30 +02:00
parent 2a458f74d6
commit 9906b291f1
29 changed files with 345 additions and 1 deletions

15
test/fixtures/contacts.yml vendored Normal file
View File

@@ -0,0 +1,15 @@
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
name: MyString
email: MyString
address: MyString
geo_long: 1.5
geo_lat: 1.5
two:
name: MyString
email: MyString
address: MyString
geo_long: 1.5
geo_lat: 1.5

15
test/fixtures/notes.yml vendored Normal file
View File

@@ -0,0 +1,15 @@
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
title: MyString
description: MyText
pinned: false
archived: false
project: one
two:
title: MyString
description: MyText
pinned: false
archived: false
project: two

11
test/fixtures/phone_numbers.yml vendored Normal file
View File

@@ -0,0 +1,11 @@
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
phone_number: MyString
type: 1
contact: one
two:
phone_number: MyString
type: 1
contact: two

11
test/fixtures/project_categories.yml vendored Normal file
View File

@@ -0,0 +1,11 @@
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
title: MyString
description: MyText
order: 1
two:
title: MyString
description: MyText
order: 1

17
test/fixtures/projects.yml vendored Normal file
View File

@@ -0,0 +1,17 @@
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
title: MyString
website: MyString
email: MyString
business_type: 1
user: one
project_category: one
two:
title: MyString
website: MyString
email: MyString
business_type: 1
user: two
project_category: two

19
test/fixtures/tasks.yml vendored Normal file
View File

@@ -0,0 +1,19 @@
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
title: MyString
description: MyText
priority: 1
status: 1
type: 1
due_date: 2025-06-11
user: one
two:
title: MyString
description: MyText
priority: 1
status: 1
type: 1
due_date: 2025-06-11
user: two

View File

@@ -0,0 +1,7 @@
require "test_helper"
class ContactTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end

7
test/models/note_test.rb Normal file
View File

@@ -0,0 +1,7 @@
require "test_helper"
class NoteTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end

View File

@@ -0,0 +1,7 @@
require "test_helper"
class PhoneNumberTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end

View File

@@ -0,0 +1,7 @@
require "test_helper"
class ProjectCategoryTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end

View File

@@ -0,0 +1,7 @@
require "test_helper"
class ProjectTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end

7
test/models/task_test.rb Normal file
View File

@@ -0,0 +1,7 @@
require "test_helper"
class TaskTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end