T
T
tank1232015-11-23 21:13:08
Ruby on Rails
tank123, 2015-11-23 21:13:08

How to match between RAils 4.2.4 and DB?

I have rails 4.2.4
and this is the error I get with rake db:test:clone
f67527c3987a48478bfd7c0f9dbf7c89.jpg
when fixing it manually rake db:migrate RAILS_ENV =test the same
when using ActiveRecord :: Migrate .maintain_test_schema! error remains

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kirill Mokevnin, 2015-11-24
@toxicmt

1. Environment variables are assigned without spaces before and after equals.
2. Specify environment variables always before executing the command, not after. Because if you do it after, then the command may start to work incorrectly, since the variable gets inside the script and god knows how it processes it. Based on your output, rake thinks it's a command.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question