# How to create migration files?

**URL:** <https://meta.discourse.org/t/how-to-create-migration-files/48991>\
**Category:** Development\
**Created:** [8월 22, 2016, 10:55오전 UTC](https://meta.discourse.org/t/how-to-create-migration-files/48991 "2016-08-22T10:55:12Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![dachary](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dachary/32/119731_2.png) [@dachary](https://meta.discourse.org/u/dachary)\
**Post date:** [8월 22, 2016, 10:55오전 UTC](https://meta.discourse.org/t/how-to-create-migration-files/48991/1 "2016-08-22T10:55:12Z")

</div>

I would like to create a new table (to store the graph for vote delegation). Should I create a migration file similar to **db/migrate/20120311170118\_create\_users.rb** manually ? Or is it enough to update the **== Schema Information** at the end of the model file ? I naively tried that and run **rake db:migrate** but it did not work 😉

---

_[View the full topic](https://meta.discourse.org/t/how-to-create-migration-files/48991)._
