This commit is contained in:
Nicolas Bally 2013-07-18 11:32:13 +02:00
parent c0397336d5
commit 489ba62810
3 changed files with 7 additions and 2 deletions

View File

@ -95,6 +95,10 @@ set :application, 'pic_vert_app'
task :migrate do
run "cd #{deploy_to}current && bundle exec rake db:migrate RAILS_ENV=#{rails_env}"
end
task :migrate_redo do
run "cd #{deploy_to}current && bundle exec rake db:migrate:redo RAILS_ENV=#{rails_env}"
end
task :nginx do

View File

@ -6,6 +6,7 @@ class CreateAnswerSets < ActiveRecord::Migration
t.references :survey_item_answer
t.text :content
t.boolean :is_checked
t.integer :position
t.timestamps
end
add_index :answer_sets, :question_set_id

View File

@ -66,13 +66,13 @@ item.answers.build(:label_text => "Autres > Précisez ", :field_type => 2)
@survey.save
add_column :answer_sets, :position, :integer
end
def down
remove_column :answer_sets, :position
@survey = SurveyType.find_by_slug("07-13-ressource-en-eau").destroy
end
end