ruby on rails - How can I empty all the results in the database? -
I have the If you set up a clean database again, then you should not run the migration, Code should be loaded by schema.rb db: seed function that can add initial data to the database The database is cleaned so that it removes all the contents of the database, but leave the tables there so that I do not need to run all the migration again?
DB: schema: Load (Large projects will have code in migration which will no longer run, for example, because the name of the class changed I went).
rake db: drop db: make db: schema: load db: bead
Comments
Post a Comment