method

rails_command

Importance_1
v7.0.0 - Show latest stable - 0 notes - Class: Rails::Generators::Actions
rails_command(command, options = {}) public

Runs the supplied rake task (invoked with ‘rails …’)

rails_command("db:migrate")
rails_command("db:migrate", env: "production")
rails_command("gems:install", sudo: true)
rails_command("gems:install", capture: true)
Show source
Register or log in to add new notes.