Is it possible to completely remove the database and all migration records etc from an existing application so I can redesign the database from scratch?
相关问题
- NOT DISTINCT query in mySQL
- Eager-loading association count with Arel (Rails 3
- SQL/SQL-LITE - Counting records after filtering
- Flush single app django 1.9
- keeping one connection to DB or opening closing pe
相关文章
- SQLite不能创建表
- 小型数据库(SQLite,Derby,H2)可以存储多少数据?
- sqlite char数据类型 长度问题
- how to call a active record named scope with a str
- Sqlite: How do I reset all database tables?
- “No explicit conversion of Symbol into String” for
- Rspec controller error expecting <“index”> but
- Factory_girl has_one relation with validates_prese
By issuing
rake -T
you have the following database tasks:So to issue
bundle exec rake db:drop:all
and if you want to remove all the migrations, and assuming you want to remove only the migrations, delete them and write new ones.If you want to change your models too, use
rails d model
.Yes, Its possible to remove the database and migration.
This will get rid of the db:
And for each migration that you have: