Commit 4c91f481191172d2363a814f03fdf493184731d6
1 parent
f4180b50
Exists in
master
and in
29 other branches
Fixed migration: avoid validation on form update
(ActionItem3172)
Showing
1 changed file
with
1 additions
and
4 deletions
Show diff stats
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 | ... | ... |