aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/adapters/mysql2
diff options
context:
space:
mode:
authornoam <CLUSTERfoo@users.noreply.github.com>2014-11-17 12:54:40 -0500
committernoam <CLUSTERfoo@users.noreply.github.com>2014-12-03 11:35:40 -0500
commitb64fb3020b34a8b9607802613d13e81b362dbae2 (patch)
tree3ebc4bceb70327405d55b7a2dd2306a5290115d2 /activerecord/test/cases/adapters/mysql2
parent497544f0b3eba83c1385579de50a3d521188e448 (diff)
downloadrails-b64fb3020b34a8b9607802613d13e81b362dbae2.tar.gz
rails-b64fb3020b34a8b9607802613d13e81b362dbae2.tar.bz2
rails-b64fb3020b34a8b9607802613d13e81b362dbae2.zip
Failure to rollback t.timestamps when within a change_table migration
When running the following migration: change_table(:table_name) { |t| t/timestamps } The following error was produced: wrong number of arguments (2 for 1) .... /connection_adapters/abstract/schema_statements.rb:851:in `remove_timestamps' This is due to `arguments` containing an empty hash as its second argument.
Diffstat (limited to 'activerecord/test/cases/adapters/mysql2')
-rw-r--r--activerecord/test/cases/adapters/mysql2/active_schema_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/adapters/mysql2/active_schema_test.rb b/activerecord/test/cases/adapters/mysql2/active_schema_test.rb
index 3d97182356..e87cd3886a 100644
--- a/activerecord/test/cases/adapters/mysql2/active_schema_test.rb
+++ b/activerecord/test/cases/adapters/mysql2/active_schema_test.rb
@@ -107,7 +107,7 @@ class ActiveSchemaTest < ActiveRecord::TestCase
ActiveRecord::Base.connection.create_table :delete_me do |t|
t.timestamps null: true
end
- ActiveRecord::Base.connection.remove_timestamps :delete_me
+ ActiveRecord::Base.connection.remove_timestamps :delete_me, { null: true }
assert !column_present?('delete_me', 'updated_at', 'datetime')
assert !column_present?('delete_me', 'created_at', 'datetime')
ensure