Module: DeploYML::Frameworks::Rails2
- Includes:
- Rails
- Defined in:
- lib/deployml/frameworks/rails2.rb
Overview
Provides methods for deploying Rails 2 projects.
Instance Method Summary collapse
-
#migrate(shell) ⇒ Object
Migrates the database using the
db:migratetask.
Methods included from Rails
Instance Method Details
#migrate(shell) ⇒ Object
Migrates the database using the db:migrate task.
17 18 19 20 21 22 23 |
# File 'lib/deployml/frameworks/rails2.rb', line 17 def migrate(shell) shell.status "Migrating the ActiveRecord Database ..." shell.run 'rake', 'db:migrate', "RAILS_ENV=#{@environment}" shell.status "ActiveRecord Database migrated." end |