Ruby On Rails - Rake - Tutorialspoint

Home Whiteboard Graphing Calculator Online Compilers Articles Tools Chapters Categories Library Courses Certifications Login Ruby on Rails Tutorial
  • Ruby on Rails - Home
  • Ruby on Rails - Introduction
  • Ruby on Rails - Installation
  • Ruby on Rails - IDEs
  • Ruby on Rails - Hello World
  • Ruby on Rails - Framework
  • Ruby on Rails - Directory Structure
  • Ruby on Rails - Rails Console
  • Ruby on Rails - Bundler
  • Ruby on Rails - Examples
  • Ruby on Rails - Database Setup
  • Ruby on Rails - Active Records
  • Ruby on Rails - Validation
  • Active Record Associations
  • Active Record Query
  • Ruby on Rails - Migrations
  • Ruby on Rails - Active Model
  • Ruby on Rails - Controllers
  • Cookies and Session
  • Ruby on Rails - Authentication
  • Ruby on Rails - Routes
  • Ruby on Rails - Views
  • Ruby on Rails - Rendering
  • Ruby on Rails - Layouts
  • Ruby on Rails - Scaffolding
  • Ruby on Rails - Forms
  • Ruby on Rails - Active Jobs
  • Ruby on Rails - Action Text
  • Ruby on Rails - Active Storage
  • Ruby on Rails - JavaScript
  • Ruby on Rails - Propshaft
  • Ruby on Rails - ImportMap
  • Ruby on Rails - AJAX
  • Ruby on Rails - WebSockets
  • Ruby on Rails - Action Cable
  • Ruby on Rails - File Uploading
  • Ruby on Rails - Send Emails
  • Ruby on Rails - Rack
  • Ruby on Rails - Error Handling
  • Ruby on Rails - Deployment
  • Ruby on Rails Resources
  • Ruby on Rails - References Guide
  • Ruby on Rails - Quick Guide
  • Ruby on Rails - Resources
  • Ruby on Rails - Discussion
  • Ruby Tutorial
  • Ruby Tutorial
  • Selected Reading
  • UPSC IAS Exams Notes
  • Developer's Best Practices
  • Questions and Answers
  • Effective Resume Writing
  • AI Based Resume Builder
  • Personal AI Study Assistant
  • Generate Coding Logic
  • HR Interview Questions
  • Computer Glossary
  • Who is Who
Home Ruby-on-rails Rails and Rake Ruby on Rails - Rake Previous Quiz Next

Rake is a utility similar to make in Unix. You can say Rake is the make of ruby - the RubyMake. Rails defines a number of tasks to help you.

Here is a list of various important commands supported by Rake −

  • rake db:fixtures:load − Load fixtures into the current environment's database. Load specific fixtures using FIXTURES = x, y.

  • rake db:migrate − Migrates the database through scripts in db/migrate. Target specific version with VERSION = x.

  • rake db:schema:dump − Create a db/schema.rb file that can be portably used against any DB supported by AR.

  • rake db:schema:load − Load a schema.rb file into the database.

  • rake db:sessions:clear − Clear the sessions table.

  • rake db:sessions:create − Creates a sessions table for use with CGI::Session::ActiveRecordStore.

  • rake db:structure:dump − Dump the database structure to a SQL file.

  • rake db:test:clone − Recreate the test database from the current environment's database schema.

  • rake db:test:clone_structure − Recreate the test databases from the development structure.

  • rake db:test:prepare − Prepares the test database and load the schema.

  • rake db:test:purge − Empties the test database.

  • rake doc:app − Builds the app HTML Files.

  • rake doc:clobber_app − Removes rdoc products.

  • rake doc:clobber_plugins − Removes plugin documentation.

  • rake doc:clobber_rails − Remove rdoc products.

  • rake doc:plugins − Generates documentation for all installed plugins.

  • rake doc:rails − Build the rails HTML Files.

  • rake doc:reapp − Forces a rebuild of the RDOC files.

  • rake doc:rerails − Forces a rebuild of the RDOC files.

  • rake log:clear − Truncates all *.log files in log/ to zero bytes.

  • rake rails:freeze:edge − Lock this application to latest Edge Rails. Lock a specific revision with REVISION = X.

  • rake rails:freeze:gems − Lock this application to the current gems (by unpacking them into vendor/rails).

  • rake rails:unfreeze − Unlock this application from freeze of gems or edge and return to a fluid use of system gems.

  • rake rails:update − Update both scripts and public/javascripts from Rails.

  • rake rails:update:javascripts − Update your javascripts from your current rails install.

  • rake rails:update:scripts − Adds new scripts to the application script/ directory.

  • rake stats − Reports code statistics (KLOCs, etc) from the application.

  • rake test − Tests all units and functionals.

  • rake test:functionals − Runs tests for functionalsdb:test:prepare.

  • rake test:integration − Runs tests for integrationdb:test:prepare.

  • rake test:plugins − Runs tests for plugins environment.

  • rake test:recent − Runs tests for recentdb:test:prepare.

  • rake test:uncommitted − Runs tests for uncommitteddb:test:prepare.

  • rake test:units − Runs tests for unitsdb:test:prepare.

  • rake tmp:cache:clear − Clears all files and directories in tmp/cache.

  • rake tmp:clear − Clears session, cache, and socket files from tmp/.

  • rake tmp:create − Creates tmp directories for sessions, cache, and sockets.

  • rake tmp:sessions:clear − Clears all files in tmp/sessions.

  • rake tmp:sockets:clear − Clears all ruby_sess.* files in tmp/sessions.

rails-references-guide.htm Print Page Previous Next Advertisements

Tag » What Is Rake In Ruby