Why are migrations called migrations?

530 views
Skip to first unread message

Younes Serraj

unread,
Aug 20, 2019, 12:13:29 PM8/20/19
to Ruby on Rails: Talk
A client just asked me why we call them "database migrations" and not "database alterations". It made me curious, so I'm asking you guys: why?

Ariel Juodziukynas

unread,
Aug 20, 2019, 2:08:32 PM8/20/19
to rubyonra...@googlegroups.com
The term not just for Rails, schema migration is a database concept https://en.wikipedia.org/wiki/Schema_migration

I'm not sure about why the word "migration" is used, but maybe you get somewhere reading database's theory or history.

El mar., 20 ago. 2019 a las 13:13, Younes Serraj (<younes...@gmail.com>) escribió:
A client just asked me why we call them "database migrations" and not "database alterations". It made me curious, so I'm asking you guys: why?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/08b7a57f-e2db-4595-9121-fffd6e139c1d%40googlegroups.com.

Mehdi Farsi

unread,
Aug 20, 2019, 2:22:01 PM8/20/19
to rubyonra...@googlegroups.com
It's because Database Migration (aka Schema Migration) is versionned.

So, we migrate (increment, decrement, etc..) from a schema version to another one.

Feel free to visit this Wiki page for further information:

Hope that helps..

Mehdi



Younes Serraj <younes...@gmail.com>于2019年8月20日 周二下午6:13写道:
A client just asked me why we call them "database migrations" and not "database alterations". It made me curious, so I'm asking you guys: why?

Jake Niemiec

unread,
Aug 20, 2019, 2:28:44 PM8/20/19
to rubyonra...@googlegroups.com
>I'm not sure about why the word "migration" is used, but maybe you get somewhere reading database's theory or history.

Schemas change, the data migrates to the new schema. 

Probably in reference to older databases for sites developed with the likes of Active Server Pages / Java Servelets / Dream Weaver / Java Beans where the actual site "data" had to be manually moved between databases.

Remember when sites would take a few days off and simply show "website under construction"?

image.png



--
WarmlyYours
Jake Niemiec
P: (800) 875-5285F: (800) 408-1100
Tell us how we're doing and receive $25 off your next order
 

Leandro Rodrigues

unread,
Aug 20, 2019, 5:32:26 PM8/20/19
to rubyonra...@googlegroups.com
Very nice explanation! 👍😀

Reply all
Reply to author
Forward
0 new messages