Rails 5對於DB Migrations的防呆機制更新

rails 5對於資料庫的防呆機制有些更動,剛剛手動restore測試資料庫的時候才發現schema被動過。
會把建立schema的環境變數metadata存在ar_internal_metadata這張table,之後跑migrate的環境不一樣就會噴錯。

reference

[1] Rails 5 prevents destructive action on production database June 07, 2016 by Hitesh Rawal

[2] Rails repo pull request

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.