Skip to content

Commit

Permalink
AR should run schema.rb for tests when building test DBs (closes #3578)…
Browse files Browse the repository at this point in the history
… [Rick Olson]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3466 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
dhh committed Jan 23, 2006
1 parent 6236d51 commit c3cfc26
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/test/connections/native_sqlite/connection.rb
Expand Up @@ -34,4 +34,4 @@ def make_connection(clazz, db_file, db_definitions_file)


make_connection(ActiveRecord::Base, sqlite_test_db, 'sqlite.sql') make_connection(ActiveRecord::Base, sqlite_test_db, 'sqlite.sql')
make_connection(Course, sqlite_test_db2, 'sqlite2.sql') make_connection(Course, sqlite_test_db2, 'sqlite2.sql')

load(File.join(BASE_DIR, 'db_definitions', 'schema.rb'))
1 change: 1 addition & 0 deletions activerecord/test/connections/native_sqlite3/connection.rb
Expand Up @@ -34,3 +34,4 @@ def make_connection(clazz, db_file, db_definitions_file)


make_connection(ActiveRecord::Base, sqlite_test_db, 'sqlite.sql') make_connection(ActiveRecord::Base, sqlite_test_db, 'sqlite.sql')
make_connection(Course, sqlite_test_db2, 'sqlite2.sql') make_connection(Course, sqlite_test_db2, 'sqlite2.sql')
load(File.join(BASE_DIR, 'db_definitions', 'schema.rb'))
Expand Up @@ -15,3 +15,4 @@ def make_connection(clazz, db_definitions_file)


make_connection(ActiveRecord::Base, 'sqlite.sql') make_connection(ActiveRecord::Base, 'sqlite.sql')
make_connection(Course, 'sqlite2.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.