程式筆記
Ruby on Rails
介紹rake三兄弟(rake db 發生問題時使用)
K
kidneyweakx
March 11, 2019 (Updated: December 18, 2025)
# rails db 有問題自救
照順序輸入或單獨執行migrate
整體步驟是挺危險的,建議在開發步驟的時候做,主要還是要集中注意在 migration 上
ruby
rake db:drop #刪除數據庫
rake db:create #新建數據庫
rake db:migrate #更改數據庫(有時可單獨執行)
Related Articles
→
LOG-DC6
No File is an Island: Unraveling Swift Dependencies and Architecture
> > In the world of Swift, we are accustomed to the power of Xcode and clean syntax. However, as a project's scale grows, an invisible monster begins to haunt the...
[程式筆記][Swift]
@kidneyweakx→
LOG-FE5
Saved by the Logs: How to Recover a Forgotten Keystore Password via IDE Build Logs.
> > The greatest distance in the world is when the password is right in the IDE, but I can't see it
[程式筆記][Android]
@kidneyweakx→
LOG-912
Hexo升級V5排除疑難雜症
> 因為剛好把電腦重灌,然後這個blog就躺在D槽等著我幫他換新的環境,然後他就被我快樂的升級了。
[程式筆記][Javascript][hexo]
@kidneyweakx