Mercurial > hg > soundsoftware-site
view .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 |
line wrap: on
line source
class RemoveCustomFieldsMinMaxLengthDefaultValues < ActiveRecord::Migration def up change_column :custom_fields, :min_length, :int, :default => nil, :null => true change_column :custom_fields, :max_length, :int, :default => nil, :null => true CustomField.where(:min_length => 0).update_all(:min_length => nil) CustomField.where(:max_length => 0).update_all(:max_length => nil) end def self.down CustomField.where(:min_length => nil).update_all(:min_length => 0) CustomField.where(:max_length => nil).update_all(:max_length => 0) change_column :custom_fields, :min_length, :int, :default => 0, :null => false change_column :custom_fields, :max_length, :int, :default => 0, :null => false end end