I've been migrating a project from AR to Sequel. After doing all the necessary changes in the models and other layers and making the specs run, I'm finding an issue when running my first migration. First, my dump is called ActiveRecord::Schema. So, with ActiveRecord out, that's the first "ouch" moment. My first step, I assume, is regenerate the schema, hopefully to an hybrid/sql format. How could I generate it from the existing file/database?
The other question would be: what to do with the remaining migrations? They all subclass ActiveRecord::Migration, so db:structure:load and other tasks fail as soon as they load one of the files. How to migrate them/ignore them at best?
I've been migrating a project from AR to Sequel. After doing all the necessary changes in the models and other layers and making the specs run, I'm finding an issue when running my first migration. First, my dump is called
ActiveRecord::Schema
. So, with ActiveRecord out, that's the first "ouch" moment. My first step, I assume, is regenerate the schema, hopefully to an hybrid/sql format. How could I generate it from the existing file/database? The other question would be: what to do with the remaining migrations? They all subclassActiveRecord::Migration
, so db:structure:load and other tasks fail as soon as they load one of the files. How to migrate them/ignore them at best?