Skip to content

Instantly share code, notes, and snippets.

@guoyoujin
Last active April 17, 2018 03:21
Show Gist options
  • Save guoyoujin/6efda25214a30bdc6e75bddd1c3561d6 to your computer and use it in GitHub Desktop.
Save guoyoujin/6efda25214a30bdc6e75bddd1c3561d6 to your computer and use it in GitHub Desktop.
rails
切记在rails 使用 migration,rollback的时候需要注意的点
1.删除表之后,执行rollback是无法回滚的
2.删除字段之后,执行rollback是无法回滚的
3.修改字段部分属性之后,执行rollback是无法回滚的
总之删除动作和修改动作回滚比较复杂,乱用,为此付出血的代价
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment