diff options
author | José Valim <jose.valim@gmail.com> | 2011-06-18 19:34:39 -0700 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-06-18 19:34:39 -0700 |
commit | 7d4606156b9d2b1900e99b9fb5cd08529b8f95a0 (patch) | |
tree | 15de4a53c7a1e097872b899bb0f9b8d9fbff90a2 /activerecord/lib/active_record/connection_adapters | |
parent | 4054435b28d0abbad0278dbdec3d432a284c8959 (diff) | |
parent | 3cc83a8f24ba61b648a2728efc113388cf1ec243 (diff) | |
download | rails-7d4606156b9d2b1900e99b9fb5cd08529b8f95a0.tar.gz rails-7d4606156b9d2b1900e99b9fb5cd08529b8f95a0.tar.bz2 rails-7d4606156b9d2b1900e99b9fb5cd08529b8f95a0.zip |
Merge pull request #1763 from grantneufeld/schema_column_exists_options_hash
Fix default options argument on ActiveRecord::ConnectionAdaptors::Table#column_exists?
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb index a9e3c83eb0..82f564e41d 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb @@ -328,7 +328,7 @@ module ActiveRecord end # Checks to see if a column exists. See SchemaStatements#column_exists? - def column_exists?(column_name, type = nil, options = nil) + def column_exists?(column_name, type = nil, options = {}) @base.column_exists?(@table_name, column_name, type, options) end |