What is the right approach to deal with Rails db/schema.rb file in GIT?

后端 未结 4 1486
南旧
南旧 2020-12-03 04:10

Should we include schema.rb while commiting to GIT? or should we ignore it? what is the right approach?

4条回答
  •  广开言路
    2020-12-03 05:10

    I don't commit this file to Git, because it create when I launch rake db:migrate.

    If I will commit this file to Git, I cannot pull new changes from server after each db:migrate.

提交回复
热议问题