Rails provides migrations to help you evolve your database schema in a convenient way. In your new Rails application, your database schema starts off empty. Active Record helps you update it whenever a new migration is run. Why do you need migrations?
Full article