1. Technology
You can opt-out at any time. Please refer to our privacy policy for contact information.

Ruby on Rails Tutorial - Starting the Blog

By

6 of 8

Run the Migration

The scaffold generator created a migration which will create the posts table when run. Before we can start up the server and see what the posts controller looks like, you have to run the migration. To run the migration, run the db:migrate rake task from the blog directory.

blog$ rake db:migrate
== 20080702134850 CreatePosts: migrating ==========
-- create_table(:posts)
   -> 0.0697s
== 20080702134850 CreatePosts: migrated (0.0700s) =
  1. About.com
  2. Technology
  3. Ruby
  4. Ruby on Rails
  5. Run the Migration

©2014 About.com. All rights reserved.