sondage
This commit is contained in:
parent
c0397336d5
commit
489ba62810
@ -95,6 +95,10 @@ set :application, 'pic_vert_app'
|
|||||||
task :migrate do
|
task :migrate do
|
||||||
run "cd #{deploy_to}current && bundle exec rake db:migrate RAILS_ENV=#{rails_env}"
|
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
|
end
|
||||||
|
|
||||||
task :nginx do
|
task :nginx do
|
||||||
|
@ -6,6 +6,7 @@ class CreateAnswerSets < ActiveRecord::Migration
|
|||||||
t.references :survey_item_answer
|
t.references :survey_item_answer
|
||||||
t.text :content
|
t.text :content
|
||||||
t.boolean :is_checked
|
t.boolean :is_checked
|
||||||
|
t.integer :position
|
||||||
t.timestamps
|
t.timestamps
|
||||||
end
|
end
|
||||||
add_index :answer_sets, :question_set_id
|
add_index :answer_sets, :question_set_id
|
||||||
|
@ -66,13 +66,13 @@ item.answers.build(:label_text => "Autres > Précisez ", :field_type => 2)
|
|||||||
|
|
||||||
@survey.save
|
@survey.save
|
||||||
|
|
||||||
add_column :answer_sets, :position, :integer
|
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def down
|
def down
|
||||||
remove_column :answer_sets, :position
|
|
||||||
@survey = SurveyType.find_by_slug("07-13-ressource-en-eau").destroy
|
@survey = SurveyType.find_by_slug("07-13-ressource-en-eau").destroy
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user