Org Company
JodGig::Company mapping to Org::Company Attributes
| Org::Company | JodGig::Company (or other source) |
|---|---|
| id | null |
| parent_company_id | null |
| country_id | hard code to Singapore's geo_country id in jodapp |
| name | name |
| primary_address | jodgig_company.address |
| postal_code | extract postal code from jodgig_company.address |
| use jodgig_company HQ user's email address if available, else use placeholder | |
| website_url | jodgig_company.website_url |
| description | jodgig_company.description |
| registration_no | jodgig_company.registration_no |
| is_enabled | jodgig_company.status |
| created_by | null, @todo: update this after user is migrated |
| updated_by | null, @todo: update this after user is migrated |
| created_at | jodgig_company.created_at |
| updated_at | jodgig_company.updated_at |
| is_deleted | jodgig_company.deleted_at.present? |
| is_deleted_at | jodgig_company.deleted_at |
| address_geo_area_id | determine general geo_area based on jodgig_company.address |
| uuid | SecureRandom.uuid |
| logo_original_filename | jodgig_company.company_logo_filename |
| logo_s3_path | generate_s3_path for JodApp after migrating logo from JodGig to JodApp |
| logo_extension | ::File.extname(jodgig_company.company_logo_filename) |
| slug | jodgig_company.slug |
| remote_id | jodgig_company.id |
Logo File (dated: 9 March 2026)
logo_s3_path are still using JodGig S3's full path, however we should move copy the logo into JodApp S3 so we don't need to keep track on which files are migrated and which are not migrated
can try to use .copy_object to move the file to new path path structure will be public/org/companies/:org-company-uuid/* referenced in s3-setup
To copy the file from can look at JodApp Api Aws::S3::CopyService, need to find out whether it's more difficult to move file between bucket