aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/migration_test.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2006-11-05 02:01:31 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2006-11-05 02:01:31 +0000
commitb6171e71050dda9e3b4ebfccd440a180283667ce (patch)
treed771aa00b002e93f28bb107d9edefd3e217c6188 /activerecord/test/migration_test.rb
parentceb3859672ddba6257ffc59c2db4fd99d98ffc9b (diff)
downloadrails-b6171e71050dda9e3b4ebfccd440a180283667ce.tar.gz
rails-b6171e71050dda9e3b4ebfccd440a180283667ce.tar.bz2
rails-b6171e71050dda9e3b4ebfccd440a180283667ce.zip
SQLite: count(distinct) queries supported in >= 3.2.6, fix calculations workaround, remove count(distinct) query rewrite, cleanup test connection scripts. Closes #6544.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5426 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/migration_test.rb')
-rw-r--r--activerecord/test/migration_test.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/activerecord/test/migration_test.rb b/activerecord/test/migration_test.rb
index a28532eed7..3cfbcac82e 100644
--- a/activerecord/test/migration_test.rb
+++ b/activerecord/test/migration_test.rb
@@ -165,10 +165,9 @@ if ActiveRecord::Base.connection.supports_migrations?
Person.connection.drop_table :testings rescue nil
end
- # SQL Server and Sybase will not allow you to add a NOT NULL column
- # to a table without specifying a default value, so the
- # following test must be skipped
- unless current_adapter?(:SQLServerAdapter, :SybaseAdapter)
+ # SQL Server, Sybase, and SQLite3 will not allow you to add a NOT NULL
+ # column to a table without a default value.
+ unless current_adapter?(:SQLServerAdapter, :SybaseAdapter, :SQLiteAdapter)
def test_add_column_not_null_without_default
Person.connection.create_table :testings do |t|
t.column :foo, :string