diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2016-04-20 07:38:04 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2016-04-20 07:38:04 +0900 |
commit | da87a679c586e8d3b97fe53a2823f2edd925f9f2 (patch) | |
tree | 104eddd08f68e193dfd1332039ec19f6bdc8c0d9 /activerecord/lib | |
parent | ee25e1992c942cc3369b245a2736aff2a3bc5a02 (diff) | |
download | rails-da87a679c586e8d3b97fe53a2823f2edd925f9f2.tar.gz rails-da87a679c586e8d3b97fe53a2823f2edd925f9f2.tar.bz2 rails-da87a679c586e8d3b97fe53a2823f2edd925f9f2.zip |
Fix `test_blank_columns_created_in_block`
Follow up to 1683410.
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb index 4a66b82cbb..272e6293ab 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb @@ -225,7 +225,7 @@ module ActiveRecord type_metadata = fetch_type_metadata(column_name, type, oid, fmod) default_value = extract_value_from_default(default) default_function = extract_default_function(default_value, default) - new_column(column_name, default_value, type_metadata, !notnull, table_name, default_function, collation, comment: comment) + new_column(column_name, default_value, type_metadata, !notnull, table_name, default_function, collation, comment: comment.presence) end end |