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
Where m[:options] is a string: default: -> { "CURRENT_TIMESTAMP" }, null: false.
I'm not sure what possible solutions look like. Maybe saving the original string and use it for the dump, but use the parsed one for all other purposes? Do you have any ideas?
The text was updated successfully, but these errors were encountered:
When you dump a MySQL tablewith schema_plus where a column has "CURRENT_TUIMESTAMP" as the default value, the schema dump contains invalid ruby code:
This is because the schema dump "converter" in schema_plus/core/active_record/schema_dumper.rb uses
eval
to make them[:options]
a hash, but that contains a lambda:Where
m[:options]
is a string:default: -> { "CURRENT_TIMESTAMP" }, null: false
.I'm not sure what possible solutions look like. Maybe saving the original string and use it for the dump, but use the parsed one for all other purposes? Do you have any ideas?
The text was updated successfully, but these errors were encountered: