diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-01 14:27:32 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-01 14:27:32 +0000 |
commit | eac7cf0b0608132673220d9045b8ff51dc0804e1 (patch) | |
tree | 770902bf0f248f387520de7312f6db9a3cf8f504 /activerecord/test/aaa_create_tables_test.rb | |
parent | 28a11969ced52abf3d7d51f486779cf31d1efe1f (diff) | |
download | rails-eac7cf0b0608132673220d9045b8ff51dc0804e1.tar.gz rails-eac7cf0b0608132673220d9045b8ff51dc0804e1.tar.bz2 rails-eac7cf0b0608132673220d9045b8ff51dc0804e1.zip |
Added preliminary support for an agile database migration technique (currently only for MySQL)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@818 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/aaa_create_tables_test.rb')
-rw-r--r-- | activerecord/test/aaa_create_tables_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/test/aaa_create_tables_test.rb b/activerecord/test/aaa_create_tables_test.rb index ba14199d31..5d494946c1 100644 --- a/activerecord/test/aaa_create_tables_test.rb +++ b/activerecord/test/aaa_create_tables_test.rb @@ -45,13 +45,13 @@ class CreateTablesTest < Test::Unit::TestCase def test_table_creation adapter_name = ActiveRecord::Base.connection.adapter_name.downcase - run_sql_file ActiveRecord::Base.connection, "test/fixtures/db_definitions/" + adapter_name + ".drop.sql" - run_sql_file ActiveRecord::Base.connection, "test/fixtures/db_definitions/" + adapter_name + ".sql" + run_sql_file ActiveRecord::Base.connection, "#{File.dirname(__FILE__)}/fixtures/db_definitions/" + adapter_name + ".drop.sql" + run_sql_file ActiveRecord::Base.connection, "#{File.dirname(__FILE__)}/fixtures/db_definitions/" + adapter_name + ".sql" # Now do the same thing with the connection used by multiple_db_test.rb adapter_name = Course.retrieve_connection.adapter_name.downcase - run_sql_file Course.retrieve_connection, "test/fixtures/db_definitions/" + adapter_name + "2.drop.sql" - run_sql_file Course.retrieve_connection, "test/fixtures/db_definitions/" + adapter_name + "2.sql" + run_sql_file Course.retrieve_connection, "#{File.dirname(__FILE__)}/fixtures/db_definitions/" + adapter_name + "2.drop.sql" + run_sql_file Course.retrieve_connection, "#{File.dirname(__FILE__)}/fixtures/db_definitions/" + adapter_name + "2.sql" assert_equal 1,1 end |