Permalink
Browse files

story-status-model-migration-edit

You can always edit the migration before running it. For example you could create some initial story statuses by adding this code to the `self.up` method:

SHOW_PATCH
  • Loading branch information...
bryanlarsen authored and iox committed Jun 3, 2013
1 parent fdf875d commit 11d28a03ee18e9ef64fa18e920dfba2e38ff7db3
Showing with 3 additions and 0 deletions.
  1. +3 −0 db/migrate/20130109022053_add_story_status_model.rb
@@ -10,6 +10,9 @@ def self.up
remove_column :stories, :status
add_index :stories, [:status_id]
statuses = %w(new accepted discussion implementation user_testing deployed rejected)
statuses.each { |status| StoryStatus.create :name => status }
end
def self.down

0 comments on commit 11d28a0

Please sign in to comment.