aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2019-01-26 21:14:28 +0900
committerRyuta Kamizono <kamipo@gmail.com>2019-01-26 21:14:28 +0900
commit17901d876460f013c22dd155a148bbf7671433e2 (patch)
tree4f87ad4be54ae356f4bd98a627877e1d045bb098 /activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
parent662ea46237d826e71fd4c667a7cab3c7cb79a72e (diff)
downloadrails-17901d876460f013c22dd155a148bbf7671433e2.tar.gz
rails-17901d876460f013c22dd155a148bbf7671433e2.tar.bz2
rails-17901d876460f013c22dd155a148bbf7671433e2.zip
Allow `column_exists?` giving options without type
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb')
-rw-r--r--activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
index 90a130320b..1afbf79836 100644
--- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
+++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
@@ -130,7 +130,7 @@ module ActiveRecord
# column_exists?(:suppliers, :name, :string, null: false)
# column_exists?(:suppliers, :tax, :decimal, precision: 8, scale: 2)
#
- def column_exists?(table_name, column_name, type = nil, options = {})
+ def column_exists?(table_name, column_name, type = nil, **options)
column_name = column_name.to_s
checks = []
checks << lambda { |c| c.name == column_name }