Rick DeNatale
2008-May-15 19:34 UTC
Rails 2.1RC1 rake db:test:clone_structure blowing up with lots of migrations
http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/201-process-schema_migrations-inserts-individually-during-rake-db-test-clone_structure#ticket-201-2 I wrote this ticket yesterday. I''m converting a large app with lots of migrations to 2.1 and rake db:test:prepare fails. It''s trying to play sql statements chunk by chunk from db/development_structure.sql into the test database, but when it gets to the insert statements at the end which represent the contents of schema_migrations, it fails with an invalid SQL error. I''m not sure whether this is because the chunk of sql is just too long, or that connection.execute wants only a single sql statement, but the patch in the ticket fixes the generation of the file to put empty lines between each insert, which causes the rake task to execute them one by one, and alleviates the problem. Might be important?! More on this at http://talklikeaduck.denhaven2.com/articles/2008/05/15/rails-2-1rc1-and-the-enhanced-migrations-plugin -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---