What does rake db migrate do?
Likewise, what does rake db create do?
Rake is a utility built into Ruby and Rails, which provides an efficient way for managing database changes. You can easily migrate database changes to servers by only using a command line!
Herein, what does rake db drop do?
db:drop Drops the database for the current RAILS_ENV environment. If RAILS_ENV is not specified it defaults to the development and test databases. db:drop:all Drops the database for all environments. db:migrate Runs migrations for the current environment that have not run yet.
Migrations are a feature of Active Record that allows you to evolve your database schema over time. Rather than write schema modifications in pure SQL, migrations allow you to use a Ruby DSL to describe changes to your tables. The rails commands that manipulate migrations and your schema.