On 30 January 2015 at 14:40, Colin Law <clan...@gmail.com> wrote:
> On 30 January 2015 at 14:17, Sean Kelley <kelleyf...@gmail.com> wrote:
>>
>> Thanks. Your command line affects development db also which is not ideal.  I 
>> looked up db:test:prepare and it appears to be deprecated in 4.2
>> http://stackoverflow.com/questions/15169894/what-does-rake-dbtestprepare-actually-do

I think if you read that right through including /all/ the comments
you will find it has been un-deprecated again.

Colin

>>
>> I decided to try it anyway with RAILS_ENV=test but I get same error of 
>> duplicate table 'users' so I tried without the test env set and I get db 
>> connection is closed message for test.
>
> I presume your development db is up to date (so running migrate on
> that does nothing).
> What happens if you recreate the test db and then run migrate on it?
> Does the migrate run successfully?
>
> Colin

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLvK8b9jvXQE_Cfg-cNxmM%3D%2BOAAF-Cyv3WoydEGkXhnnPw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to