ruby - How to rebase your branch with master that has new schema migrations? Rails -


i have branch has different schema master. when try rebase master, merge conflict error schemas. understand happening because schema on branch different 1 on master. because working on else in branch , had run migrations. merged branch master. master has new table in schema branch working on has no idea. when try rebase master gives me conflict error. there way branch automatically merge , take latest schema master when rebase? know there code snippet can put in config file , call in attributes file, however, solution not seem work me since migrations made before put code in config file.

if schema.rb (or file matter) changed since created branch have manually merge conflict.

conflict happens when file both branches have new changes present around same line numbers.

doing below mentioned in answer make lose changes done in current branch:

git rebase -xtheirs the_branch_name 

in case of schema.rb version number line throws conflict. should put higher number of 2 versions:

activerecord::schema.define(version: 2017081234567) 

Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -