Skip to content

Commit

Permalink
Fix migration in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
takashi authored and parndt committed Mar 3, 2015
1 parent 06a9657 commit fbd7a12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ class CreateCategories < ActiveRecord::Migration
t.integer :rgt, :null => false, :index => true

# optional fields
t.integer :depth, :null => false
t.integer :children_count, :null => false
t.integer :depth, :null => false, :default => 0
t.integer :children_count, :null => false, :default => 0
end
end

Expand Down

0 comments on commit fbd7a12

Please sign in to comment.