Rails to SvelteKit Migration – LocallyGrown
blog.kestrelsnest.social·4d·
Discuss: Hacker News
Flag this post

How I migrated decades of complex ActiveRecord relationships, subdomain multitenancy, and business logic to a modern stack without losing a single feature

📝 Note on Code Examples

All code samples in this post are simplified, illustrative examples to demonstrate concepts, and not actual production code. They’re edited for clarity and brevity. Please don’t point out all the bugs! 😊


TL;DR

ℹ️ The Migration in Brief

  • Rebuilt 19 years of Rails in SvelteKit while production stayed live
  • TypeScript domain model + service layer, Drizzle ORM, subdomain multitenancy, role-based auth, secure theming
  • Zero data transformation; two-month preview; 2 AM, all-or-nothing cutover
  • 1,865 commits → feature parity

The Mountain I Had to Climb

Early 2025: I opened my 19-year-old Ra…

Similar Posts

Loading similar posts...