Joerg Diekmann
2006-Jan-30 16:58 UTC
[Rails] Rake and NOT using schema.rb for clone_structure_to_test
Is there a way to specify not not use schema.rb but instead using a native sql file to clone structure to the test db? Schema.rb doesn''t really work that well for mediumblobs ... Thanks. -- Posted via http://www.ruby-forum.com/.
Joerg Diekmann
2006-Jan-30 17:10 UTC
[Rails] Re: Rake and NOT using schema.rb for clone_structure_to_test
Sorry - this is when I run rake test_units for example. I want it to use a sql dump as opposed to a schema dump. Joerg Diekmann wrote:> Is there a way to specify not not use schema.rb but instead using a > native sql file to clone structure to the test db? Schema.rb doesn''t > really work that well for mediumblobs ... Thanks.-- Posted via http://www.ruby-forum.com/.
Joerg Diekmann
2006-Jan-30 17:16 UTC
[Rails] Re: Rake and NOT using schema.rb for clone_structure_to_test
I found it - sorry for this extra cruft to the forums ... In the environment.rb file, change config.active_record.schema_format = :ruby to config.active_record.schema_format = :sql Joerg Diekmann wrote:> Sorry - this is when I run rake test_units for example. I want it to use > a sql dump as opposed to a schema dump. > > Joerg Diekmann wrote: >> Is there a way to specify not not use schema.rb but instead using a >> native sql file to clone structure to the test db? Schema.rb doesn''t >> really work that well for mediumblobs ... Thanks.-- Posted via http://www.ruby-forum.com/.