Permalink
Browse files

AR should run schema.rb for tests when building test DBs (closes #3578)…

… [Rick Olson]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3466 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 6236d51 commit c3cfc2636b8d14b366f15d561bc76541faa4d4b1 @dhh dhh committed Jan 23, 2006
View
2 activerecord/test/connections/native_sqlite/connection.rb
@@ -34,4 +34,4 @@ def make_connection(clazz, db_file, db_definitions_file)
make_connection(ActiveRecord::Base, sqlite_test_db, 'sqlite.sql')
make_connection(Course, sqlite_test_db2, 'sqlite2.sql')
-
+load(File.join(BASE_DIR, 'db_definitions', 'schema.rb'))
View
1 activerecord/test/connections/native_sqlite3/connection.rb
@@ -34,3 +34,4 @@ def make_connection(clazz, db_file, db_definitions_file)
make_connection(ActiveRecord::Base, sqlite_test_db, 'sqlite.sql')
make_connection(Course, sqlite_test_db2, 'sqlite2.sql')
+load(File.join(BASE_DIR, 'db_definitions', 'schema.rb'))
View
1 activerecord/test/connections/native_sqlite3/in_memory_connection.rb
@@ -15,3 +15,4 @@ def make_connection(clazz, db_definitions_file)
make_connection(ActiveRecord::Base, 'sqlite.sql')
make_connection(Course, 'sqlite2.sql')
+ load("#{File.dirname(__FILE__)}/../../fixtures/db_definitions/schema.rb"))

0 comments on commit c3cfc26

Please sign in to comment.