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

sequel-rails does not detect migrations from other specified directories. #129

Open
Aryk opened this issue Feb 26, 2017 · 0 comments
Open

Comments

@Aryk
Copy link

Aryk commented Feb 26, 2017

In Rails (atleast in 4 and 5), you can specify multiple paths for db/migrate, for example if you have Rails engines:

https://content.pivotal.io/blog/leave-your-migrations-in-your-rails-engines

The Sequel::Migrator class does not work with multiple directories and would take significant refactoring (not sure if Jeremy, the maintainer of Sequel, wants to do that, so I did a relatively simple solution.

My suggestion to resolve this is to copy the files temporarily over to the db migrate directory and then delete them after the SequelRails::Migrations call is over.

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

1 participant