How to create migration files?

No, you need to create migrate file and run it with db:migrate (see ActiveRecord docs )