Sha256: 73022068f2598410c823602c1104fcf8f673e0ebbac2e0e2e6f2217905e86037
Contents?: true
Size: 594 Bytes
Versions: 4
Compression:
Stored size: 594 Bytes
Contents
require 'deployml/frameworks/rails' module DeploYML module Frameworks # # Provides methods for deploying Rails 2 projects. # module Rails2 include Rails # # Migrates the database using the `db:migrate` task. # # @param [LocalShell, RemoteShell] shell # The shell to execute commands in. # def migrate(shell) shell.status "Migrating the ActiveRecord Database ..." shell.run 'rake', 'db:migrate', "RAILS_ENV=#{@environment}" shell.status "ActiveRecord Database migrated." end end end end
Version data entries
4 entries across 4 versions & 1 rubygems