Permalink
Browse files

Merge pull request #2 from robinjfisher/latest-rails-compat

Fix failing migration when using latest Rails version
  • Loading branch information...
2 parents be977ce + c82fc36 commit 6ee7ba8fcf34da30c57026d3cce1f8e0a437f809 @stanislaw committed May 10, 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
@@ -15,7 +15,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 6ee7ba8

Please sign in to comment.