diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2007-09-15 21:23:05 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2007-09-15 21:23:05 +0000 |
commit | 79202b37dc7566e8b8392a44c461a64469f79a77 (patch) | |
tree | 14f21cc3a9706a3c9dd3a6b7fc4c91d6977858aa /activerecord/test | |
parent | 2fba012c018a7e29e5e0afa2ba6a6ea91b07b0a3 (diff) | |
download | rails-79202b37dc7566e8b8392a44c461a64469f79a77.tar.gz rails-79202b37dc7566e8b8392a44c461a64469f79a77.tar.bz2 rails-79202b37dc7566e8b8392a44c461a64469f79a77.zip |
Fixed that altering join tables in migrations would fail w/ sqlite3 #7453 [TimoMihaljov/brandon]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7484 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/copy_table_test_sqlite.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/copy_table_test_sqlite.rb b/activerecord/test/copy_table_test_sqlite.rb index 6da041522f..a25780e6be 100644 --- a/activerecord/test/copy_table_test_sqlite.rb +++ b/activerecord/test/copy_table_test_sqlite.rb @@ -42,6 +42,10 @@ class CopyTableTest < Test::Unit::TestCase end end + def test_copy_table_without_primary_key + test_copy_table('developers_projects', 'programmers_projects') + end + protected def copy_table(from, to, options = {}) @connection.copy_table(from, to, {:temporary => true}.merge(options)) |