aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/migration_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/migration_test.rb')
-rw-r--r--activerecord/test/migration_test.rb2
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