Skip to content

Commit

Permalink
fix this
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmire committed Jul 12, 2020
1 parent a024f4c commit 5b6fc32
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion spec/support/unit/active_record/create_table.rb
Expand Up @@ -71,7 +71,13 @@ def normalize_columns(columns)
if columns.values.first.is_a?(Hash)
columns
else
columns.transform_values { |value| { type: value } }
columns.transform_values do |value|
if value == false
value
else
{ type: value }
end
end
end
else
columns.inject({}) do |hash, column_name|
Expand Down

0 comments on commit 5b6fc32

Please sign in to comment.