annotate .svn/pristine/ac/ac50a6b39635018231c646605bc398d2a48c5f14.svn-base @ 1524:82fac3dcf466
redmine-2.5-integration
Fix failure to interpret Javascript when autocompleting members for project
author |
Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
date |
Thu, 11 Sep 2014 10:24:38 +0100 |
parents |
dffacf8a6908 |
children |
|
rev |
line source |
Chris@1517
|
1 class RemoveCustomFieldsMinMaxLengthDefaultValues < ActiveRecord::Migration
|
Chris@1517
|
2 def up
|
Chris@1517
|
3 change_column :custom_fields, :min_length, :int, :default => nil, :null => true
|
Chris@1517
|
4 change_column :custom_fields, :max_length, :int, :default => nil, :null => true
|
Chris@1517
|
5 CustomField.where(:min_length => 0).update_all(:min_length => nil)
|
Chris@1517
|
6 CustomField.where(:max_length => 0).update_all(:max_length => nil)
|
Chris@1517
|
7 end
|
Chris@1517
|
8
|
Chris@1517
|
9 def self.down
|
Chris@1517
|
10 CustomField.where(:min_length => nil).update_all(:min_length => 0)
|
Chris@1517
|
11 CustomField.where(:max_length => nil).update_all(:max_length => 0)
|
Chris@1517
|
12 change_column :custom_fields, :min_length, :int, :default => 0, :null => false
|
Chris@1517
|
13 change_column :custom_fields, :max_length, :int, :default => 0, :null => false
|
Chris@1517
|
14 end
|
Chris@1517
|
15 end
|