magic_recipes 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/magic_recipes/db.rb +1 -1
- metadata +1 -1
data/lib/magic_recipes/db.rb
CHANGED
@@ -41,7 +41,7 @@ module MagicRecipes
|
|
41
41
|
rails runner "ActiveRecord::Base.connection.tables.each { |t| ActiveRecord::Base.connection.drop_table t }"
|
42
42
|
CMD
|
43
43
|
else
|
44
|
-
run "cd #{latest_release} && rails runner 'ActiveRecord::Base.connection.tables.each { |t| ActiveRecord::Base.connection.drop_table t }'"
|
44
|
+
run "cd #{latest_release} && RAILS_ENV=#{rails_env} rails runner 'ActiveRecord::Base.connection.tables.each { |t| ActiveRecord::Base.connection.drop_table t }'"
|
45
45
|
end
|
46
46
|
# => ActiveRecord::Base.connection.tables.each { |t| ActiveRecord::Base.connection.drop_table t }
|
47
47
|
end
|