aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2016-08-14 05:05:34 +0900
committerRyuta Kamizono <kamipo@gmail.com>2016-08-14 05:05:34 +0900
commite7023cb8f153a1b340c24c9b2525e8b27567ebdb (patch)
treea6f6339e02d65fc38ae68604a18760560e689dcd /activerecord/test
parent6107a40c0e4d05614493bddf33d5ae8d9ce8a8d2 (diff)
downloadrails-e7023cb8f153a1b340c24c9b2525e8b27567ebdb.tar.gz
rails-e7023cb8f153a1b340c24c9b2525e8b27567ebdb.tar.bz2
rails-e7023cb8f153a1b340c24c9b2525e8b27567ebdb.zip
Avoid to allow unused splat args for `t.timestamps` in `create_table`
Unfortunately `t.timestamps` in `create_table` allows unused splat args. But the same one in `change_table` does not allow them. This commit fixes the inconsistent behavior.
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/timestamp_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/timestamp_test.rb b/activerecord/test/cases/timestamp_test.rb
index 519d9db601..cd83518e84 100644
--- a/activerecord/test/cases/timestamp_test.rb
+++ b/activerecord/test/cases/timestamp_test.rb
@@ -462,7 +462,7 @@ class TimestampTest < ActiveRecord::TestCase
def test_index_is_created_for_both_timestamps
ActiveRecord::Base.connection.create_table(:foos, force: true) do |t|
- t.timestamps(:foos, null: true, index: true)
+ t.timestamps null: true, index: true
end
indexes = ActiveRecord::Base.connection.indexes("foos")