diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-05 09:16:23 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-05 09:16:23 +0000 |
commit | 0bef1682382c3497792aad48a6927bccb4c39c4e (patch) | |
tree | 27fd3d77cea760d956e85b666676949176880f73 /activerecord/test | |
parent | 6eee49aa2e8407100471678f456de4d99c873ee4 (diff) | |
download | rails-0bef1682382c3497792aad48a6927bccb4c39c4e.tar.gz rails-0bef1682382c3497792aad48a6927bccb4c39c4e.tar.bz2 rails-0bef1682382c3497792aad48a6927bccb4c39c4e.zip |
Made default changes work in both postgresql and mysql #1612 [Tobias Luetke]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1703 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/migration_test.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/test/migration_test.rb b/activerecord/test/migration_test.rb index a266afed2f..9e84978395 100644 --- a/activerecord/test/migration_test.rb +++ b/activerecord/test/migration_test.rb @@ -108,9 +108,11 @@ if ActiveRecord::Base.connection.supports_migrations? def test_change_column_with_new_default Person.connection.add_column "people", "administrator", :boolean, :default => 1 + Person.reset_column_information assert Person.new.administrator? assert_nothing_raised { Person.connection.change_column "people", "administrator", :boolean, :default => 0 } + Person.reset_column_information assert !Person.new.administrator? end |