magic_recipes 0.0.10 → 0.0.11
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
@@ -38,7 +38,7 @@ module MagicRecipes
|
|
38
38
|
run <<-CMD
|
39
39
|
#{rvm_cmd} &&
|
40
40
|
cd #{latest_release} &&
|
41
|
-
rails runner "ActiveRecord::Base.connection.tables.each { |t| ActiveRecord::Base.connection.drop_table t }"
|
41
|
+
RAILS_ENV=#{rails_env} rails runner "ActiveRecord::Base.connection.tables.each { |t| ActiveRecord::Base.connection.drop_table t }"
|
42
42
|
CMD
|
43
43
|
else
|
44
44
|
run "cd #{latest_release} && RAILS_ENV=#{rails_env} rails runner 'ActiveRecord::Base.connection.tables.each { |t| ActiveRecord::Base.connection.drop_table t }'"
|