Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to properly "migrate" migrations from previous AR::Migration #114

Open
HoneyryderChuck opened this issue Jun 1, 2016 · 1 comment
Open

Comments

@HoneyryderChuck
Copy link

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?

@Preen
Copy link

Preen commented Nov 1, 2016

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants