You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For an empty array, the default ends up looking like :default => '{}' in schema.rb, however, this doesn't get single-quoted when turned into a CREATE TABLE statement, causing rake db:schema:load to fail.
The following patch fixes it for string arrays, by causing it to be encoded in schema.rb as :default => [] and could probably be generalized:
For an empty array, the default ends up looking like
:default => '{}'
in schema.rb, however, this doesn't get single-quoted when turned into aCREATE TABLE
statement, causingrake db:schema:load
to fail.The following patch fixes it for string arrays, by causing it to be encoded in schema.rb as
:default => []
and could probably be generalized:The text was updated successfully, but these errors were encountered: