Permalink
Browse files

Fixed seeds

  • Loading branch information...
1 parent f0679a1 commit 034229014d477b1170420603acf80d5f6b419169 @jhbabon committed Apr 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 db/seeds.rb
View
2 db/seeds.rb
@@ -55,7 +55,7 @@ def info(message)
seed_section 'Cities' do
%w(Madrid Valladolid Barcelona).each do |name|
info "Creating the city '#{name}'."
- if City.find_by_name(name.parameterize)
+ if City.find_by_name(name)
info "The city '#{name}' exists. Skipping."
else
City.create(name: name)

0 comments on commit 0342290

Please sign in to comment.