- Creates all the databases specified in config/database.yml
- Run existing migrations in db/migrate
- Generates the schema.rb file
- Runs db/seeds.rb
- Drop the current environment’s database
- Drop all databases listed in config/database.yml
- Drop tables, create tables, rerun all migrations.
- List all available routes, defined in config/routes.rb
- syntax:
rails g migration ModelName title:string
- syntax:
rails g model ModelName
- The rails version of pry.
- Useful for viewing data in db, and testing model methods
- create a new rails application
- use
rails new AppName -d postgresql
- Starts the server (ctrl-c to stop)