Commit 35872e74a06abcd3957b04b0440bd0783493220c
1 parent
b985a36e
Exists in
master
and in
26 other branches
seeds: ensure RAILS_ENV is defined
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
db/seeds.rb
... | ... | @@ -6,6 +6,7 @@ |
6 | 6 | # cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) |
7 | 7 | # Mayor.create(name: 'Emanuel', city: cities.first) |
8 | 8 | |
9 | +ENV['RAILS_ENV'] ||= 'development' | |
9 | 10 | |
10 | 11 | # This is for plugins that wants to use seeds.rb |
11 | 12 | # Check for example on the Foo plugin | ... | ... |