Browse Source

Fix crash when not seeding in production

Maarten van den Berg 7 years ago
parent
commit
af3e51f85b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      db/seeds.rb

+ 1 - 1
db/seeds.rb

@@ -7,7 +7,7 @@
7 7
 #   Character.create(name: 'Luke', movie: movies.first)
8 8
 require 'byebug'
9 9
 
10
-return if Rails.env.production?
10
+exit if Rails.env.production?
11 11
 
12 12
 p = Person.create!(
13 13
   first_name: 'Maarten',