Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Update 'company_users' table with employment details#515

Merged
mohinid merged 8 commits intodevelopfrom
update-company-users-table
Jun 24, 2022
Merged

Update 'company_users' table with employment details#515
mohinid merged 8 commits intodevelopfrom
update-company-users-table

Conversation

@mohinid
Copy link
Contributor

@mohinid mohinid commented Jun 22, 2022

Notion card

https://www.notion.so/saeloun/Add-tables-for-personal-employment-Allocated-devices-Address-71ef49d0c38e4242bd2998120141372d

Summary

  1. Remove association between employment_details and company_users.
  2. Update company_users table by adding new employment details columns.
  3. Drop employment_details table.

Preview

Emp-details updated 22June

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

How Has This Been Tested?

Tested manually and with RSpecs on local.

Checklist:

  • I have manually tested all workflows
  • I have performed a self-review of my own code
  • I have added automated tests for my code

- Renamed table company_users as employments
- Updated Model file name and replaced company_user instances with employment
- Updated reference name in User and Company model
- Updated RSpecs- Employment, User and Company
@mohinid mohinid changed the title Update and Rename 'company_users' table as 'employments' Update 'company_users' table with employment details Jun 23, 2022
Copy link
Contributor

@rohitjoshixyz rohitjoshixyz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🎉 Let's decide on whether to use date or datetime. I have not explored it

@mohinid
Copy link
Contributor Author

mohinid commented Jun 23, 2022

@rohitjoshixyz @keshavbiswa @akhilgkrishnan - I am working on creating separate PR for changes to add instances of company_users in the repo including seed data.
Basically moving this commit- f4e6141
to separate PR.

This reverts commit f4e6141.
Copy link
Contributor

@keshavbiswa keshavbiswa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added few suggestions, rest LGTM

@mohinid mohinid removed the request for review from akhilgkrishnan June 24, 2022 08:35
Copy link
Contributor

@keshavbiswa keshavbiswa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🎉

@mohinid mohinid merged commit 136afc4 into develop Jun 24, 2022
@mohinid mohinid deleted the update-company-users-table branch June 24, 2022 08:46
vipulnsward pushed a commit that referenced this pull request Feb 15, 2026
* Remove association between employment_details and company_users

* Update company_users table with employment details

* Drop table 'employment_details'

* Changes
- Renamed table company_users as employments
- Updated Model file name and replaced company_user instances with employment
- Updated reference name in User and Company model
- Updated RSpecs- Employment, User and Company

* Revert "Changes"

This reverts commit f4e6141.

* Remove 'address' changes from schema

* Update spec/models/company_user_spec.rb

Co-authored-by: Keshav Biswa <[email protected]>

Co-authored-by: Keshav Biswa <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants