search for: my_test_db

Displaying 1 result from an estimated 1 matches for "my_test_db".

Did you mean: my_test_dir
2011 Sep 13
4
Changing adapters in ActiveRecord does not change the generated sql
...r rails that supports many different database adapters. My tests run through these adapters, but the 2nd adapter to be tested always fails with invalid sql. Here''s an example: ActiveRecord::Base.establish_connection :adapter => ''mysql2'', :database => ''my_test_db'', :username => ''root'', :password => '''' User.scoped.to_sql #=> "SELECT `users`.* FROM `users`" ActiveRecord::Base.establish_connection :adapter => ''postgresql'', :database => ''my_test_db'', :u...