You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pedro Belo edited this page Aug 13, 2015
·
2 revisions
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:cachedodesc"Clear all cached data"task:flushdo# ...endend