johnjdevine@gmail.com
2008-Apr-29 21:26 UTC
rake build_postgres_databases fails on edge... How to use the new schema.rb system?
The subject pretty much says it all. I''m getting ready to set up an environment for working on my first patch, and I discovered that the activerecord/test/schema files have changed, but the Rakefile hasn''t yet been updated. Is there a simple way to set up the test databases with the new system? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
Frederick Cheung
2008-Apr-30 00:02 UTC
Re: rake build_postgres_databases fails on edge... How to use the new schema.rb system?
On 29 Apr 2008, at 22:26, johnjdevine@gmail.com wrote:> > The subject pretty much says it all. I''m getting ready to set up an > environment for working on my first patch, and I discovered that the > activerecord/test/schema files have changed, but the Rakefile hasn''t > yet been updated. > > Is there a simple way to set up the test databases with the new > system?Oops, my bad :-) I''ll get a patch in, but until then if you just remove the lines %x( psql activerecord_unittest -f #{File.join(SCHEMA_ROOT, ''postgresql.sql'')} ) %x( psql activerecord_unittest2 -f #{File.join(SCHEMA_ROOT, ''postgresql2.sql'')} ) Then I think you should be ok Fred --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
Frederick Cheung
2008-Apr-30 00:49 UTC
Re: rake build_postgres_databases fails on edge... How to use the new schema.rb system?
There were 2 cockups introduced by my rejigging of all that stuff (but at the end of the day both due to the fact that it didn''t cross my mind to make sure that everything worked when starting from scratch). I''ve created a patch to fix this: http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/65-running-postgres-unit-tests-broken-when-starting-from-scratch Sorry for the breakage. Fred On 30 Apr 2008, at 01:02, Frederick Cheung wrote:> > On 29 Apr 2008, at 22:26, johnjdevine@gmail.com wrote: > >> >> The subject pretty much says it all. I''m getting ready to set up an >> environment for working on my first patch, and I discovered that the >> activerecord/test/schema files have changed, but the Rakefile hasn''t >> yet been updated. >> >> Is there a simple way to set up the test databases with the new >> system? > > > Oops, my bad :-) > I''ll get a patch in, but until then if you just remove the lines > %x( psql activerecord_unittest -f #{File.join(SCHEMA_ROOT, > ''postgresql.sql'')} ) > %x( psql activerecord_unittest2 -f #{File.join(SCHEMA_ROOT, > ''postgresql2.sql'')} ) > Then I think you should be ok > > Fred >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---