-
Notifications
You must be signed in to change notification settings - Fork 489
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
Skip database migrations #18
Comments
that's solve no problem, this task take same time as run empty rake db:migrate |
The workaround could be an arbitrary execution of This could save around 3 seconds per deploy, which it a lot in most cases. |
That work only in migration numbers sequenced, as in old rails. Now migration with old timestamp can be merged and migrated after more fresh migration. E.g. when some feature developed long time and merged into master. Rails have |
Well, any suggestions then ? |
Close this issue, leave work with migrations for rails. Now migrations even not most long task on deploy, assets packaging take more time. |
If some improvements can save a few seconds here and there, it may be worth a look. Though in this case, migrations is a bit tricky. Even if we track the migrations independently from the database (say in a text file), there's still the danger that someone may run a migration manually at a server. Using mina should not prevent people from being able to do that. I'm closing this for now. @sosedoff, @skojin, thanks for contributing to the project. |
I think we can do this by checking the current deployed version's Reopening for discusisons :) |
Good point, lets just do that. |
For everyone's reference, let's take note that running However... If 99% of the cases commit their latest schema.rb (as everyone should!), then it's worth doing this for the benefit of most people. We'll still provide the classic @sosedoff, @skojin, thanks for participating in the discussions :) |
Done in v0.1.3.pre1, feel free to scrutinize and test it. |
Great, will try it out. |
I thought it would be useful to skip database migration task if the database is up to date.
Could utilize
rake db:version
and save it as a file somewhere atshared/.schema_version
.Ideas?
The text was updated successfully, but these errors were encountered: