Permalink
Browse files

story-status-model-migration-run

Run your modified migration:

    $ rake db:migrate

That's it. The page to manage the story statuses should appear in the main navigation.

Now that we've got more structured statuses, let's do something with them...
  • Loading branch information...
bryanlarsen committed Feb 19, 2010
1 parent 6f2b13f commit bdccf92653096c39776d271fda607b1b54884c52
Showing with 9 additions and 2 deletions.
  1. +9 −2 db/schema.rb
View
@@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20110309193957) do
+ActiveRecord::Schema.define(:version => 20110418140729) do
create_table "projects", :force => true do |t|
t.string "name"
@@ -22,13 +22,20 @@
create_table "stories", :force => true do |t|
t.string "title"
t.text "body"
- t.string "status"
t.datetime "created_at"
t.datetime "updated_at"
t.integer "project_id"
+ t.integer "status_id"
end
add_index "stories", ["project_id"], :name => "index_stories_on_project_id"
+ add_index "stories", ["status_id"], :name => "index_stories_on_status_id"
+
+ create_table "story_statuses", :force => true do |t|
+ t.string "name"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ end
create_table "task_assignments", :force => true do |t|
t.datetime "created_at"

0 comments on commit bdccf92

Please sign in to comment.