Hi, I got a production server where I''d like to run "rake test" - to check for file permissions etc. - all tests pass on my local machine. On the production server I got production db and empty development and test db. How to create schema.rb file and prepare test db? I tried various rake tasks, but the schema definition in schema.rb file is empty and despite the fact that rake tasks (i.e. db:test:prepare and db:schema:dump) do not return any errors, I can''t create test db structure and run tests. Thanks in advance for any tips --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
szimek wrote:> Hi, > > I got a production server where I''d like to run "rake test" - to check > for file permissions etc. - all tests pass on my local machine. > > On the production server I got production db and empty development and > test db. How to create schema.rb file and prepare test db? I tried > various rake tasks, but the schema definition in schema.rb file is > empty and despite the fact that rake tasks (i.e. db:test:prepare and > db:schema:dump) do not return any errors, I can''t create test db > structure and run tests. > > Thanks in advance for any tips > > > >Try this... rake RAILS_ENV=development db:migrate rake db:test:prepare -- http://www.5valleys.com/ http://www.workingwithrails.com/person/8078 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 18 Kwi, 01:02, Jon Garvin <jgarvin.li...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> szimekwrote: > > Hi, > > > I got a production server where I''d like to run "rake test" - to check > > for file permissions etc. - all tests pass on my local machine. > > > On the production server I got production db and empty development and > > test db. How to create schema.rb file and prepare test db? I tried > > various rake tasks, but the schema definition in schema.rb file is > > empty and despite the fact that rake tasks (i.e. db:test:prepare and > > db:schema:dump) do not return any errors, I can''t create test db > > structure and run tests. > > > Thanks in advance for any tips > > Try this... > > rake RAILS_ENV=development db:migrate > rake db:test:prepare > > -- > > http://www.5valleys.com/ > > http://www.workingwithrails.com/person/8078Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---