Last active
April 17, 2018 03:21
-
-
Save guoyoujin/6efda25214a30bdc6e75bddd1c3561d6 to your computer and use it in GitHub Desktop.
rails
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
切记在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