Permalink
Browse files

Merge branch 'master' of github.com:stanislaw/simple_roles

  • Loading branch information...
2 parents 936d773 + 6ee7ba8 commit df792bf0358ff61c64838bf7ef9c702afadf1202 @stanislaw committed Jun 27, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 db/migrate/002_create_roles.rb
View
4 db/migrate/002_create_roles.rb
@@ -16,7 +16,9 @@ def down
def create_roles
SimpleRoles::Configuration.valid_roles.each do |role|
- Role.create(:name => role.to_s)
+ r = Role.new
+ r.name = role.to_s
+ r.save
end
end
end

0 comments on commit df792bf

Please sign in to comment.