Rename organization_people to affiliations#997
Conversation
|
@copilot throw out these changes. rebase main. complete the rename of organization_people to affiliations on the latest code. |
Done! I've rebased the branch on the latest main (commit 4f1678b) and completed the comprehensive rename from organization_people to affiliations. Changes made (commit 2d59ec7):
The branch is ready for review. Note: I cannot force-push due to permissions, so the remote branch still shows the old commits. The local branch has been properly rebased and all changes are complete. |
| task migrate_user_to_person: :environment do | ||
| puts "🚀 Starting migration of user_id to person_id in affiliations..." | ||
| puts "Environment: #{Rails.env}" | ||
| puts "===============================================" |
There was a problem hiding this comment.
since affiliations used to refer to user_id, need to verify we've populated person_id
…tes, factories, specs Co-authored-by: maebeale <7607813+maebeale@users.noreply.github.com>
…iliations rename Co-authored-by: maebeale <7607813+maebeale@users.noreply.github.com>
…rtial Co-authored-by: maebeale <7607813+maebeale@users.noreply.github.com>
c8bdd81 to
eb5601a
Compare
* Initial plan * Rename organization_people to affiliations - models, controllers, routes, factories, specs Co-authored-by: maebeale <7607813+maebeale@users.noreply.github.com> * Complete view, policy, decorator, rake task, and spec updates for affiliations rename Co-authored-by: maebeale <7607813+maebeale@users.noreply.github.com> * Fix affiliation_path reference in organizations affiliation_fields partial Co-authored-by: maebeale <7607813+maebeale@users.noreply.github.com> * Rename db table to affiliations * Some additional renames, esp factory references * Change people sorting to active/inactive, then alpha within each (ignore start date) * Update spec to affiliations * Add conditional to test --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: maebeale <7607813+maebeale@users.noreply.github.com> Co-authored-by: maebeale <maebeale@users.noreply.github.com>
Rename organization_people to affiliations - COMPLETED
This PR performs a comprehensive rename of the
organization_peopletable and model toaffiliationsthroughout the entire Rails application.✅ Completed Changes (rebased on latest main):
organization_peopletable toaffiliationsOrganizationPersontoAffiliationand updated all associationsresources :organization_peopletoresources :affiliations📊 Changes Summary:
organization_person_path→affiliation_path@current_user_active_org_people→@current_user_active_affiliationscurentColor→currentColorin FAQ view🔄 Migration Instructions:
When deploying this PR, run:
The migration is reversible:
🧪 Testing:
📝 Notes:
no_active_affiliations💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.