sondage
This commit is contained in:
parent
c0397336d5
commit
489ba62810
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user