activerecord tasks
rake ar:abort_if_pending_migrations # Raises an error if there are pending migrations. rake ar:auto:upgrade # Uses schema.rb to auto-upgrade. rake ar:charset # Retrieves database charset. rake ar:collation # Retrieves databsae collation. rake ar:create # Creates the database as defined in config/database.yml rake ar:create:all # Creates local databases as defined in config/database.yml rake ar:drop # Drops the database for the current Padrino.env rake ar:drop:all # Drops local databases defined in config/database.yml rake ar:forward # Pushes the schema to the next version. rake ar:migrate # Migrates the database through scripts in db/migrate. rake ar:migrate:down # Runs the "down" for a given migration VERSION. rake ar:migrate:redo # Rollbacks current migration and migrates up to version rake ar:migrate:reset # Resets your database using your migrations. rake ar:migrate:up # Runs the "up" for a given migration VERSION NUMBER rake ar:reset # Drops and recreates the database using db/schema.rb. rake ar:rollback # Rolls back the schema to previous schema version. rake ar:schema:dump # Creates a portable db/schema.rb file. rake ar:schema:load # Loads a schema.rb file into the database. rake ar:schema:to_migration # Creates a migration from schema.rb rake ar:schema:to_migration_with_reset # Creates a migration and resets the migrations log. rake ar:setup # Creates the database, loads the schema, and seeds data. rake ar:structure:dump # Dumps the database structure to a SQL file. rake ar:version # Retrieves the current schema version number.