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

Disable migrations #41

Closed
andruby opened this issue Aug 28, 2013 · 2 comments
Closed

Disable migrations #41

andruby opened this issue Aug 28, 2013 · 2 comments

Comments

@andruby
Copy link

andruby commented Aug 28, 2013

Is there a clean way to disable the migration railties and rake task injections?

Right now I'm resolving the symptoms by adding this line to the app's Rakefile:

Rake::Task["test:prepare"].prerequisites.delete("db:test:prepare")

And these lines to config/application.rb:

config.sequel.schema_dump = false
config.app_generators.sequel[:migration] = false
@JonathanTron
Copy link
Member

There is nothing yet, but we can probably do something like for the schema_dump config and then use it to load or not the database.rake task in the Railtie: https://github.com/TalentBox/sequel-rails/blob/master/lib/sequel_rails/railtie.rb#L39-L41

Would you want to try adding it?

@JonathanTron
Copy link
Member

I've created a pull-request for this issue: #42.

Can you review it and tell me if that's what you needed?

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