How to create migration files?

cool. Is there a plugin I could read to see how it’s used ? I found something on rubydoc.