浏览代码

Fix crash when not seeding in production

Maarten van den Berg 7 年之前
父节点
当前提交
af3e51f85b
共有 1 个文件被更改,包括 1 次插入1 次删除
  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',