Commit 4c91f481191172d2363a814f03fdf493184731d6

Authored by Daniela Feitosa
1 parent f4180b50

Fixed migration: avoid validation on form update

(ActionItem3172)
plugins/custom_forms/db/migrate/20131107125327_add_admission_to_form.rb
... ... @@ -4,10 +4,7 @@ class AddAdmissionToForm < ActiveRecord::Migration
4 4 t.boolean :for_admission, :default => false
5 5 end
6 6  
7   - CustomFormsPlugin::Form.find_each do |f|
8   - f.for_admission = false
9   - f.save!
10   - end
  7 + execute('update custom_forms_plugin_forms set for_admission = (1<0)')
11 8 end
12 9  
13 10 def self.down
... ...