I am migrating data from a horrible yaml serialized field into an actual
table.
I have 1 migration file that updates the schema and 1 migration file that
does something like this:
SequelAdapter::Account.all().each do |account|
#do stuff
I would rather not use the model but as the data is in a horrible yaml
blob so I don't have really any alternative as getting the data out is
tough.
The problem is that after the ddl statements have been executed, the sequel
model appears to be still referencing the old schema before the ddl
statements where executed and it errors when trying to reference the new
fields.
If I run the migration again then all is good. Is there away to reload the
sequel model before running the update commands?
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.