Skip to content

Commit

Permalink
Set the default value of metadata as empty hash string in both Rails …
Browse files Browse the repository at this point in the history
…4 and 5

Use String#dump because String#inspect is just for debugging
  • Loading branch information
kymmt90 committed Apr 15, 2018
1 parent 0a05a0b commit 999e955
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/generators/statesman/generator_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def database_supports_partial_indexes?
end

def metadata_default_value
Utils.rails_5_or_higher? ? "{}" : "{}".inspect
"{}".dump
end
end
end

0 comments on commit 999e955

Please sign in to comment.