~/talk

Up And Down Again: A Migration's Tale

Talkat RailsConf 2018 · 2018-04-17..04-19· [ruby-on-rails, databases]
slides:none on file

Explains exactly what rake db:migrate and db:schema:load execute, how migration versions map to the schema_migrations table, and why Rails uses compatibility shims so old migrations keep their original behavior. Dives into the adapter pattern that emits different SQL per DB, shows the command recorder mechanism that makes change reversible, counts practical limits (no built‑in views/triggers/functions), describes building the Scenic gem to add views (it works but requires tricky ordering and dumping), and recommends switching to structure.sql for advanced DB features.

AI-written summary · about

  1. 0:00Introduction and history
  2. 1:47Anatomy of a migration
  3. 5:58Schema statements and adapters
  4. 11:35Applying migrations
  5. 15:01Reverting migrations
  6. 19:18Schema dumper
  7. 21:51Migration rot
  8. 25:22Advanced database features
  9. 30:06Conclusion and takeaways
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.