passage sur la nouvelle archi serveur

This commit is contained in:
Nicolas Bally 2012-02-09 22:38:12 +01:00
parent 646b85cf8f
commit c0fb2245e6
2 changed files with 10 additions and 1 deletions

View File

@ -62,7 +62,7 @@ set :application, 'boissier_app'
sudo "service #{application} restart" sudo "service #{application} restart"
end end
task :migrate do task :migrate do
run "cd #{deploy_to}current && rake db:migrate RAILS_ENV=#{rails_env}" run "cd #{deploy_to}current && bundle exec rake db:migrate RAILS_ENV=#{rails_env}"
end end
end end

View File

@ -0,0 +1,9 @@
class ChangeDescriptionFormatInHomeBlocks < ActiveRecord::Migration
def self.up
change_column :home_blocks, :description, :text
end
def self.down
change_column :home_blocks, :description, :string
end
end