Project initialize

This commit is contained in:
Zin Bo Thit
2026-01-28 09:53:14 +06:30
commit e8380c6e23
139 changed files with 4599 additions and 0 deletions

0
test/fixtures/.keep vendored Normal file
View File

7
test/fixtures/departments.yml vendored Normal file
View File

@@ -0,0 +1,7 @@
one:
name: IT
description: Information Technology
two:
name: HR
description: Human Resources

0
test/fixtures/files/.keep vendored Normal file
View File

13
test/fixtures/task_activities.yml vendored Normal file
View File

@@ -0,0 +1,13 @@
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
task: one
user: one
action: MyString
details: MyText
two:
task: two
user: two
action: MyString
details: MyText

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

@@ -0,0 +1,24 @@
one:
title: Setup Server
description: Initial server setup for the IT department
priority: urgent
status: open
creator: admin
department: one
two:
title: Recruitment Plan
description: Plan for new hires
priority: planning
status: open
creator: manager
department: two
assignee: employee
completed_task:
title: Policy Update
description: Update the company policy
priority: review
status: completed
creator: manager
department: two

22
test/fixtures/users.yml vendored Normal file
View File

@@ -0,0 +1,22 @@
admin:
name: Admin User
email: admin@example.com
role: admin
encrypted_password: <%= Devise::Encryptor.digest(User, 'password123') %>
confirmed_at: <%= Time.current %>
manager:
name: Manager User
email: manager@example.com
role: manager
department: one
encrypted_password: <%= Devise::Encryptor.digest(User, 'password123') %>
confirmed_at: <%= Time.current %>
employee:
name: Employee User
email: employee@example.com
role: employee
department: one
encrypted_password: <%= Devise::Encryptor.digest(User, 'password123') %>
confirmed_at: <%= Time.current %>