passage sur la nouvelle archi serveur
This commit is contained in:
parent
646b85cf8f
commit
c0fb2245e6
@ -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
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user