rake db:abort_if_pending_migrations # Raises an error if there are pending migrations
rake db:charset # Retrieves the charset for the current environment's database
rake db:collation # Retrieves the collation for the current environment's database
rake db:create # Create the database defined in config/database.yml for the current RAILS_ENV
rake db:create:all # Create all the local databases defined in config/database.yml
rake db:drop # Drops the database for the current RAILS_ENV
rake db:drop:all # Drops all the local databases defined in config/database.yml
rake db:fixtures:identify # Search for a fixture given a LABEL or ID.
rake db:fixtures:load # Load fixtures into the current environment's database.
rake db:migrate # Migrate the database through scripts in db/migrate.
rake db:migrate:down # Runs the "down" for a given migration VERSION.
rake db:migrate:redo # Rollbacks the database one migration and re migrate up.
rake db:migrate:reset # Resets your database using your migrations for the current environment
rake db:migrate:up # Runs the "up" for a given migration VERSION.
rake db:reset # Drops and recreates the database from db/schema.rb for the current environment.
rake db:rollback # Rolls the schema back to the previous version.
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 migration 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:load # Recreate the test database from the current schema.rb
rake db:test:prepare # Check for pending migrations and load the test schema
rake db:test:purge # Empty the test database
rake db:version # Retrieves the current schema version number
rake doc:app # Build the app HTML Files
rake doc:clobber_app # Remove rdoc products
rake doc:clobber_plugins # Remove plugin documentation
rake doc:clobber_rails # Remove rdoc products
rake doc:guides # Generate Rails guides
rake doc:plugins # Generate documentation for all installed plugins
rake doc:rails # Build the rails HTML Files
rake doc:reapp # Force a rebuild of the RDOC files
rake doc:rerails # Force a rebuild of the RDOC files
rake gems # List the gems that this rails application depends on
rake gems:build # Build any native extensions for unpacked gems
rake gems:install # Installs all required gems for this application.
rake gems:refresh_specs # Regenerate gem specifications in correct format.
rake gems:unpack # Unpacks the specified gem into vendor/gems.
rake gems:unpack:dependencies # Unpacks the specified gems and its dependencies into vendor/gems
rake log:clear # Truncates all *.log files in log/ to zero bytes
rake notes # Enumerate all annotations
rake notes:custom # Enumerate a custom annotation, specify with ANNOTATION=WTFHAX
rake notes:fixme # Enumerate all FIXME annotations
rake notes:optimize # Enumerate all OPTIMIZE annotations
rake notes:todo # Enumerate all TODO annotations
rake rails:freeze:edge # Lock to latest Edge Rails, for a specific release use RELEASE=1.2.0
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 configs, scripts and public/javascripts from Rails
rake rails:update:configs # Update config/boot.rb from your current rails install
rake rails:update:javascripts # Update your javascripts from your current rails install
rake rails:update:scripts # Add new scripts to the application script/ directory
rake routes # Print out all defined routes in match order, with names.
rake secret # Generate a crytographically secure secret key.
rake stats # Report code statistics (KLOCs, etc) from the application
rake test # Run all unit, functional and integration tests
rake test:benchmark # Run tests for benchmarkdb:test:prepare / Benchmark the performance tests
rake test:functionals # Run tests for functionalsdb:test:prepare / Run the functional tests in test/functional
rake test:integration # Run tests for integrationdb:test:prepare / Run the integration tests in test/integration
rake test:plugins # Run tests for pluginsenvironment / Run the plugin tests in vendor/plugins/*/**/test (or specify with PLUGIN=name)
rake test:profile # Run tests for profiledb:test:prepare / Profile the performance tests
rake test:recent # Run tests for recentdb:test:prepare / Test recent changes
rake test:uncommitted # Run tests for uncommitteddb:test:prepare / Test changes since last checkin (only Subversion and Git)
rake test:units # Run tests for unitsdb:test:prepare / Run the unit tests in test/unit
rake time:zones:all # Displays names of all time zones recognized by the Rails TimeZone class, grouped by offset.
rake time:zones:local # Displays names of time zones recognized by the Rails TimeZone class with the same offset as the system local time
rake time:zones:us # Displays names of US time zones recognized by the Rails TimeZone class, grouped by offset.
rake tmp:cache:clear # Clears all files and directories in tmp/cache
rake tmp:clear # Clear session, cache, and socket files from tmp/
rake tmp:create # Creates tmp directories for sessions, cache, and sockets
rake tmp:pids:clear # Clears all files in tmp/pids
rake tmp:sessions:clear # Clears all files in tmp/sessions
rake tmp:sockets:clear # Clears all files in tmp/sockets
分享到:
相关推荐
- **命令**: 分别执行`rake doc:guides`和`rake doc:rails`命令,以生成Rails的本地手册和API文档。 #### 五、在Rails中创建自定义命令 Rails允许用户轻松地在项目中创建自定义的命令脚本,这对于执行特定的任务...
4. **初始化数据库**:运行`rake db:migrate`命令来创建RedMine的数据库结构。 5. **创建管理员**:使用`rake redmine:admin:create`命令创建初始的管理员账号。 6. **启动服务**:根据你选用的Web服务器,如Apache...
4. **编译安装**:运行`rake`命令进行编译安装。对于某些系统,可能还需要额外配置Ruby环境。 ##### Windows系统下的安装 对于Windows用户,Metasploit提供了专用的安装程序,可以更方便地完成安装过程。通过以下...
3. **更新配置**:在应用的顶级目录下运行命令`rake rails:update`以完成配置。 一旦Rails 1.2正式发布,您可以安装它,并从您的应用中删除`vendor/rails`目录。需要注意的是,从网站上下载的Rails版本并不是官方...
开发者提到,如果用户不打算运行`rake doc:app`命令,可以选择使用其他的标记语言。`rake doc:app`是Ruby on Rails框架中的一个任务,用于生成应用程序的API文档,它使用RDoc工具将代码注释转化为易于阅读的格式。这...
在技术领域,cheat sheet通常指的是一个简洁明了的参考指南,它包含了关键概念、命令或语法的快速概览,便于用户随时查阅。庞的日语速查表就是这样一个工具,它将日语编程相关的词汇和短语整理成一份易于查阅的资料...
2. **初始化Foreman数据库**:运行`foreman-rake db:migrate`来初始化数据库。 3. **启动Foreman服务**:使用`service foreman start`启动服务,并将其设置为开机自启。 4. **配置SSL证书**:为了保障通信安全,需要...