Loading…
0+ curated questions with the same answer shape every time: quick recap, deep dive, pitfalls, and follow-ups. Coverage includes .
Rails migration interview questions test whether you can run schema changes safely in production. This module covers the change method and its reversible helpers (add_column/remove_column/add_index/rename_column), when to use up/down vs reversible do, zero-downtime migration patterns (add column without NOT NULL first, backfill asynchronously, add constraint after data is populated, remove column after code is deployed), the strong_migrations gem for detecting dangerous migrations, schema.rb vs structure.sql (always use structure.sql if you use database-specific features like partial indexes, triggers, or functions), index types (B-tree, partial, expression, GIN/GiST for PostgreSQL), foreign key constraints, and migration rollback strategy in CI/CD.
Full catalog
Topics are ordered for learning. Within each topic, rows are numbered 1–0 globally so you always know where you are. Collapse topics if you want a lighter view — use Expand all when you need the full list again.
Numbers 1–0 follow the order we recommend — click any row to open the full answer, or use the sticky Next link at the bottom of each page to go Q1 → Q0.