Skip to content

Suggest Alternate Resolution Strategy #5

@wycats

Description

@wycats

I personally use a different resolution strategy for both migrations and bundler.

Bundler

  1. As of sometime in 1.0, it should be fine to always run bundle install without running the check first. If the check is required, that's a bug. So if the Gemfile changes, it should be equally fast to run bundle install again.
  2. If there is a conflict in Gemfile.lock, I propose the following resolution strategy:
    1. git checkout Gemfile.lock -- <older branch>
    2. bundle install
    3. this is because bundler already knows how to resolve conflicts between Gemfile and Gemfile.lock, and will properly handle all the edge-cases we know about

Migrations

For similar reasons, I propose the following resolution strategy for conflicts in schema.rb

  1. git checkout db/schema.rb -- <older branch>
  2. rake db:migrate
  3. Again, rake db:migrate knows how to bring a schema.rb up to date with newer migrations

Is there any reason my thinking here is incorrect?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions