Rake Tasks
Pliny apps come with a series of common Rake tasks:
rake db:create # Create the database
rake db:drop # Drop the database
rake db:migrate # Run database migrations
rake db:rollback # Rollback last database migration
rake db:schema:dump # Dump the database schema
rake db:schema:load # Load the database schema
rake db:schema:merge # Merges migrations into schema and removes them
rake db:seed # Seed the database with data
rake db:setup # Setup the database
rake schema # Rebuild schema.json
Define new tasks lib/tasks. For instance, lib/tasks/cache.rake:
namespace :cache do desc "Clear all cached data" task :flush do # ... end end