Rails to SvelteKit Migration – LocallyGrown
blog.kestrelsnest.social·11w·
Discuss: Hacker News

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...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help