aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2006-01-23 05:29:17 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2006-01-23 05:29:17 +0000
commitc3cfc2636b8d14b366f15d561bc76541faa4d4b1 (patch)
treec414d8c6d30b7381b8f87af88798e69f36b5997c /activerecord
parent6236d518f29da02e26be8c5fbc73da723aff6daa (diff)
downloadrails-c3cfc2636b8d14b366f15d561bc76541faa4d4b1.tar.gz
rails-c3cfc2636b8d14b366f15d561bc76541faa4d4b1.tar.bz2
rails-c3cfc2636b8d14b366f15d561bc76541faa4d4b1.zip
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
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/connections/native_sqlite/connection.rb2
-rw-r--r--activerecord/test/connections/native_sqlite3/connection.rb1
-rw-r--r--activerecord/test/connections/native_sqlite3/in_memory_connection.rb1
3 files changed, 3 insertions, 1 deletions
diff --git a/activerecord/test/connections/native_sqlite/connection.rb b/activerecord/test/connections/native_sqlite/connection.rb
index ce3494fb7d..b714e1782a 100644
--- a/activerecord/test/connections/native_sqlite/connection.rb
+++ b/activerecord/test/connections/native_sqlite/connection.rb
@@ -34,4 +34,4 @@ end
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'))
diff --git a/activerecord/test/connections/native_sqlite3/connection.rb b/activerecord/test/connections/native_sqlite3/connection.rb
index ab6686076f..182ec6ba68 100644
--- a/activerecord/test/connections/native_sqlite3/connection.rb
+++ b/activerecord/test/connections/native_sqlite3/connection.rb
@@ -34,3 +34,4 @@ end
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'))
diff --git a/activerecord/test/connections/native_sqlite3/in_memory_connection.rb b/activerecord/test/connections/native_sqlite3/in_memory_connection.rb
index 31b1597048..32bf6a2770 100644
--- a/activerecord/test/connections/native_sqlite3/in_memory_connection.rb
+++ b/activerecord/test/connections/native_sqlite3/in_memory_connection.rb
@@ -15,3 +15,4 @@ end
make_connection(ActiveRecord::Base, 'sqlite.sql')
make_connection(Course, 'sqlite2.sql')
+ load("#{File.dirname(__FILE__)}/../../fixtures/db_definitions/schema.rb"))