diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-11-05 02:01:31 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-11-05 02:01:31 +0000 |
commit | b6171e71050dda9e3b4ebfccd440a180283667ce (patch) | |
tree | d771aa00b002e93f28bb107d9edefd3e217c6188 /activerecord/test/migration_test.rb | |
parent | ceb3859672ddba6257ffc59c2db4fd99d98ffc9b (diff) | |
download | rails-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.rb | 7 |
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 |